/*
Theme Name: Heartfelt
Theme URI: https://heartfelt.pl
Author: heartfelt.pl
Description: Prosty, galeryjny motyw sklepu z unikatowymi bluzami. Działa z WooCommerce. Kolory z logo: aqua, głęboki turkus i grafit.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heartfelt
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	/* Logo palette: aqua #7FD3DE, deep teal #1E7C87, charcoal #2B2E30 (+ tints, on white) */
	--bg: #F6FBFC;
	--ink: #2B2E30;
	--muted: #63696C;
	--line: #D9EEF1;
	--teal: #1E7C87;
	--aqua: #7FD3DE;
	--tint: #D9F1F5;
	--card: #EEF9FB;
	--serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--radius: 4px;
}

/* Wordmark font: Noteworthy, Apple's system font, on Macs, iPhones and iPads (it cannot be shipped
   with the theme). Everywhere else: Patrick Hand, a free font in the same marker style
   (assets/fonts/OFL-PatrickHand.txt). */
@font-face {
	font-family: "Patrick Hand";
	src: url(assets/fonts/patrick-hand-latin-400.woff2) format("woff2");
	font-weight: 400;
	font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.hf-serif, .hf-head h1, .hf-head h2 { font-family: var(--serif); font-weight: 400; }
.hf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.hf-muted { color: var(--muted); }
.hf-accent { color: var(--teal); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.screen-reader-text:focus, .skip-link:focus { background: #fff; clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; padding: 12px 18px; z-index: 100000; color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.hf-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--teal); font-weight: 600; }
.hf-link { display: inline-block; margin-top: 18px; border-bottom: 1.5px solid var(--teal); color: var(--teal); padding-bottom: 3px; font-weight: 600; }
.hf-link--plain { margin-top: 0; font-size: 14px; }
.hf-head { display: flex; justify-content: space-between; align-items: baseline; padding: 56px 0 22px; flex-wrap: wrap; gap: 12px; }
.hf-head h1, .hf-head h2 { font-size: 36px; line-height: 1.15; margin: 0; }

/* ---------- Header ---------- */
.hf-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 251, 252, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .hf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hf-header { top: 46px; } }
/* Logo, menu and tools in their own columns with a gap, so they never overlap */
.hf-bar { display: grid; grid-template-columns: auto 1fr auto; column-gap: 32px; align-items: center; height: 80px; }
.hf-nav { justify-self: center; }
.hf-logo { display: inline-flex; align-items: center; gap: 12px; }
.hf-brand { width: 64px; height: 64px; border-radius: 50%; background: #fff; object-fit: contain; display: block; }
.hf-wordmark { display: flex; flex-direction: column; line-height: 1; }
.hf-wordmark b { font-family: "Noteworthy", "Patrick Hand", var(--serif); font-weight: 400; font-size: 30px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.hf-tag { color: var(--muted); font-family: var(--serif); font-size: 13px; font-style: italic; margin-top: 2px; }

.hf-nav .menu { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.hf-nav .menu .current-menu-item > a, .hf-nav .menu .current_page_item > a, .hf-nav .menu .current-menu-ancestor > a { color: var(--teal); }
.hf-nav .menu a:hover { color: var(--teal); }
.hf-nav-extra { display: none; }

.hf-tools { justify-self: end; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.hf-tools button, .hf-nav button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.hf-tools a:hover, .hf-tools button:hover { color: var(--teal); }
.hf-t-extra { display: inline-flex; gap: 10px; }
.hf-menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line) !important; border-radius: 999px; color: var(--ink) !important; }
.hf-menu-btn .hf-ico-close, .hf-header.open .hf-menu-btn .hf-ico-open { display: none; }
.hf-header.open .hf-menu-btn .hf-ico-close { display: block; }

.hf-search { border-top: 1px solid var(--line); background: var(--bg); padding: 14px 0; }
.hf-search[hidden] { display: none; }
.hf-searchform { display: flex; gap: 10px; max-width: 560px; }
.hf-searchform input[type="search"] { flex: 1; }

/* ---------- Main ---------- */
.hf-main { min-height: 50vh; }
.hf-entry { max-width: 780px; padding-bottom: 80px; }
.hf-entry .hf-head { display: block; padding-bottom: 12px; }
.hf-entry .hf-head .hf-kicker { margin-bottom: 10px; }
.hf-entry .hf-head h1 { font-size: 44px; }
.hf-entry__img { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; }
.hf-entry__img img { display: block; width: 100%; }
.hf-content { font-size: 17px; }
.hf-content a:not([class]) { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.hf-content h2, .hf-content h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 1.8em 0 .5em; }
.hf-content img { border-radius: var(--radius); }
.hf-entry__meta { margin-top: 32px; font-size: 14px; }
.woocommerce-cart .hf-entry, .woocommerce-checkout .hf-entry, .woocommerce-account .hf-entry { max-width: none; }
.hf-notfound .hf-searchform { margin: 24px 0; }

/* Blog list */
.hf-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; padding-bottom: 40px; }
.hf-post__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 14px; }
.hf-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-post h2 { font-size: 22px; line-height: 1.25; margin: 6px 0 8px; }
.hf-post h2 a:hover { color: var(--teal); }
.hf-excerpt { color: var(--muted); font-size: 15px; }
.hf-excerpt p { margin: 0; }
.hf-comments { max-width: 780px; padding-bottom: 80px; }
.hf-comment-list { list-style: none; padding: 0; }
.hf-comment-list .children { list-style: none; }
.hf-comments .comment-reply-title, .hf-comments > h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 40px 0 12px; }
.comment-form p { display: grid; gap: 6px; margin: 0 0 16px; }
.comment-form label { font-size: 14px; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 10px; }
.comment-form .comment-form-cookies-consent label { color: var(--ink); }

/* Pagination (blog and shop) */
.pagination, .woocommerce nav.woocommerce-pagination { padding: 0 0 80px; text-align: center; }
.pagination .nav-links, .woocommerce nav.woocommerce-pagination ul { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; float: none; margin: 0; padding: 0; overflow: visible; }
.page-numbers, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px; margin: 0; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); line-height: 1; }
a.page-numbers:hover, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus { border-color: var(--teal); color: var(--teal); background: transparent; }
.page-numbers.current, .woocommerce nav.woocommerce-pagination ul li span.current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Front page ---------- */
.hf-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.hf-feature__img { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); }
.hf-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hf-feature h1 { font-size: 52px; line-height: 1.05; font-weight: 400; margin: 12px 0 20px; }
.hf-feature p { color: var(--muted); font-size: 17px; max-width: 440px; }
.hf-feature + .hf-head { padding-top: 24px; }
/* The featured piece's own name and price, linked to its page */
.hf-feature__product { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: 440px; margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hf-feature__name { font-size: 20px; line-height: 1.3; }
.hf-feature__product:hover .hf-feature__name { color: var(--teal); }
.hf-feature__price { flex: none; color: var(--teal); font-size: 20px; font-weight: 600; }
.hf-feature__price del { color: var(--muted); font-weight: 400; font-size: 16px; margin-right: 6px; }
.hf-feature__price ins { background: none; text-decoration: none; }

/* ---------- Product grid ---------- */
.hf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; list-style: none; margin: 0; padding: 0 0 80px; }
/* WooCommerce clearfix pseudo-elements (".products ul::before") would become empty grid cells */
.hf-grid::before, .hf-grid::after { display: none !important; }
.hf-card { margin: 0; padding: 0; display: flex; flex-direction: column; }
.hf-card--big { grid-column: span 2; grid-row: span 2; }
.hf-card__link { display: flex; flex-direction: column; flex: 1; }
.hf-card__img { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--tint); flex: none; }
.hf-card--big .hf-card__img { aspect-ratio: auto; flex: 1; min-height: 0; }
.hf-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.hf-card__link:hover .hf-card__img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .hf-card__img img { transition: none; } .hf-card__link:hover .hf-card__img img { transform: none; } }
.hf-card__title { display: block; font-size: 18px; margin: 14px 0 2px; }
.hf-card__link:hover .hf-card__title { color: var(--teal); }
.hf-card__price { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.hf-card__price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.hf-card__price ins { text-decoration: none; background: none; }
.is-sold .hf-card__img img { filter: saturate(.25) opacity(.7); }
.hf-sold { position: absolute; left: 14px; bottom: 14px; background: var(--bg); padding: 4px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; border-radius: 2px; }
.is-sold .hf-card__price { color: var(--muted); font-weight: 400; }

/* Shop archive heading (WooCommerce prints h1.woocommerce-products-header__title) */
.woocommerce-products-header { padding: 0; }
.woocommerce-products-header__title, h1.page-title { padding: 56px 0 22px; font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0; line-height: 1.15; }
.term-description, .page-description { color: var(--muted); font-size: 17px; max-width: 760px; margin: 0 0 8px; }
/* Shop intro written as a heading block (Botiga styled it big and bold): read it as plain text */
.term-description :is(h1, h2, h3, h4, h5, h6), .page-description :is(h1, h2, h3, h4, h5, h6) { font: inherit; color: inherit; margin: 0 0 12px; }
.page-description .has-text-align-center, .term-description .has-text-align-center { text-align: left; }
.hf-feature + .page-description { padding-top: 8px; }

/* ---------- Single product ---------- */
.single-product div.product { padding: 56px 0 24px; }
.single-product .hf-product-top + .woocommerce-tabs { margin-top: 56px; }
/* Photos and details: the details column sticks only within this box (see heartfelt_product_top_open) */
.single-product .hf-product-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.single-product div.product .woocommerce-product-gallery { float: none; width: 100%; margin: 0; position: relative; }
.single-product div.product .summary { float: none; width: auto; margin: 0; }
.single-product div.product .woocommerce-tabs, .single-product div.product .related, .single-product div.product .upsells { grid-column: 1 / -1; width: 100%; float: none; clear: none; }
.single-product .woocommerce-product-gallery__image img { border-radius: var(--radius); width: 100%; display: block; }
.single-product .woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; list-style: none; margin: 10px 0 0; padding: 0; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: var(--radius); opacity: .6; cursor: pointer; width: 100%; aspect-ratio: 1; object-fit: cover; }
.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active, .single-product .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.single-product .woocommerce-product-gallery__trigger { background: var(--bg); border-radius: 999px; }
.single-product .summary .product_title { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; margin: 0 0 14px; }
.woocommerce div.product .summary p.price, .woocommerce div.product .summary span.price { display: block; color: var(--teal); font-size: 24px; font-weight: 600; margin: 0 0 18px; }
.woocommerce div.product .summary .price del { color: var(--muted); font-weight: 400; font-size: 18px; }
.woocommerce div.product .summary .price ins { background: none; text-decoration: none; }
.single-product .woocommerce-product-details__short-description { color: var(--muted); font-size: 17px; }
.woocommerce div.product .summary p.stock { margin: 16px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); }
.woocommerce div.product .summary p.stock.out-of-stock { color: var(--muted); }
.single-product form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; align-items: stretch; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart .quantity { margin: 0; float: none; }
/* One-of-a-kind items (stock 1) get a hidden quantity field: take it out of the flex row */
.single-product form.cart .quantity.hidden, .single-product form.cart .quantity:has(> input[type="hidden"]) { display: none; }
.single-product .product_meta { font-size: 13px; color: var(--muted); display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.single-product .product_meta a { color: var(--teal); }
.single-product span.onsale, .hf-main span.onsale { position: absolute; top: 14px; left: 14px; z-index: 2; min-height: 0; min-width: 0; line-height: 1; padding: 8px 14px; background: var(--teal); color: #fff; border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

/* Tabs */
.woocommerce-tabs { margin-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 28px; list-style: none; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--line); overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; box-shadow: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 400; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a, .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 780px; margin: 0; }
.woocommerce div.product .woocommerce-tabs .panel > h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 12px; }
.related.products > h2, .upsells.products > h2, .cross-sells > h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 40px 0 22px; }

/* ---------- Forms, buttons, notices (WooCommerce and WordPress) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], select, textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 0; }
.woocommerce form .form-row label { font-size: 14px; color: var(--muted); }
.woocommerce .quantity .qty { width: 72px; height: 100%; text-align: center; }

.hf-searchform button, .button, button.button, a.button, input.button, .wp-element-button, .wp-block-button__link, input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
	display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
	background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: var(--radius); padding: 12px 24px; line-height: 1.2; cursor: pointer; text-decoration: none;
}
.hf-searchform button:hover, .button:hover, button.button:hover, a.button:hover, input.button:hover, .wp-element-button:hover, .wp-block-button__link:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; cursor: not-allowed; background: var(--teal); }
.single-product form.cart .single_add_to_cart_button { flex: 1; min-width: 200px; padding: 16px 28px; }

/* Trust line under "Dodaj do koszyka" */
.single-product .hf-trust { list-style: none; margin: -8px 0 24px; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.single-product .hf-trust li { position: relative; margin: 0; padding-left: 24px; }
.single-product .hf-trust li::before {
	content: ""; position: absolute; left: 0; top: .15em; width: 16px; height: 16px; background: var(--teal);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "Dodano do koszyka" panel in place of the button (heartfelt_in_cart_panel) */
.single-product .hf-incart { margin: 24px 0; padding: 18px 20px 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); }
.single-product .hf-incart:focus { outline: none; }
.single-product .hf-incart__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 600; font-size: 16px; color: var(--ink); }
.single-product .hf-incart__title::before {
	content: ""; width: 22px; height: 22px; flex: none; border-radius: 999px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.woocommerce .single-product .hf-incart a.hf-incart__checkout, .single-product .hf-incart a.button.hf-incart__checkout { display: block; width: 100%; text-align: center; padding: 16px 28px; }
.single-product .hf-incart__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.single-product .hf-incart__links a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.single-product .hf-suggest { margin: 0 0 28px; }
.single-product .hf-suggest__title { margin: 0 0 12px; font-family: inherit; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.single-product .hf-suggest__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.single-product .hf-suggest__list li { margin: 0; }
.single-product .hf-suggest__list a { display: block; color: var(--ink); text-decoration: none; }
.single-product .hf-suggest__list img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--tint); margin-bottom: 8px; }
.single-product .hf-suggest__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; }
.single-product .hf-suggest__list a:hover .hf-suggest__name { color: var(--teal); }
.single-product .hf-suggest__price { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; }

.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 24px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); color: var(--ink); width: auto;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-error { border-left-color: #B3261E; }
.woocommerce-message a.button, .woocommerce-info a.button { float: right; margin-left: 16px; padding: 8px 16px; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button) { color: var(--teal); text-decoration: underline; }

/* Tables: cart, orders, product attributes */
.woocommerce table.shop_table, table.shop_attributes { width: 100%; border-collapse: collapse; border: 0; border-radius: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td, table.shop_attributes th, table.shop_attributes td { padding: 14px 10px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; background: none; font-style: normal; }
.woocommerce table.shop_table th, table.shop_attributes th { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.woocommerce table.shop_table img { width: 64px; border-radius: var(--radius); }
.woocommerce a.remove { color: var(--muted) !important; background: none; }
.woocommerce a.remove:hover { color: #fff !important; background: var(--teal); }

/* Checkout and account */
.woocommerce-checkout h3, .woocommerce-account h2, .woocommerce-cart h2, .cart_totals h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.woocommerce-checkout #payment { background: var(--card); border-radius: var(--radius); }
.woocommerce-checkout #payment div.payment_box { background: #fff; color: var(--ink); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); }
/* The legally required "Zamówienie z obowiązkiem zapłaty" is long: full width, allowed to wrap on narrow phones */
.woocommerce-checkout #payment #place_order { width: 100%; float: none; white-space: normal; line-height: 1.3; }
/* Classic checkout: WooCommerce floats this heading, which pulls "Twoje zamówienie" up beside it */
.woocommerce-checkout #ship-to-different-address { float: none; display: flex; align-items: center; gap: 10px; }
.woocommerce-checkout #ship-to-different-address label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.woocommerce-checkout #order_review_heading { clear: both; }
/* Some checkout plugins add a second required marker (abbr) next to WooCommerce's own */
.woocommerce form .form-row label abbr.required + span.required { display: none; }
@media (min-width: 901px) {
	/* The last row takes the spare height of the tall details column, so the summary sits right under its heading */
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "notices notices" "details heading" "details review"; column-gap: 56px; align-items: start; }
	.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3:first-child { margin-top: 0; }
	.woocommerce-checkout form.checkout > #order_review_heading { margin-bottom: 16px; }
	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-area: notices; }
	.woocommerce-checkout form.checkout > #customer_details { grid-area: details; }
	.woocommerce-checkout form.checkout > #order_review_heading { grid-area: heading; margin-top: 0; }
	.woocommerce-checkout form.checkout > #order_review { grid-area: review; position: sticky; top: 104px; }
	.admin-bar.woocommerce-checkout form.checkout > #order_review { top: 136px; }
}
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce::before, .woocommerce-account .woocommerce::after { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 0 12px 14px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; color: var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { border-left-color: var(--teal); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { color: var(--teal); }
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 460px; }
.woocommerce-account:not(.logged-in) .u-columns { display: block; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { float: none; width: auto; }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-cart .cart-collaterals .cross-sells { float: none; width: 100%; max-width: none; margin: 0; }
.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 8px; float: none; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 180px; }

/* Block cart and checkout */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: inherit; }
.wc-block-components-button:not(.is-link) { background: var(--teal); color: #fff; border-radius: var(--radius); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.wc-block-components-button:not(.is-link):hover { background: var(--ink); color: #fff; }
.wc-block-components-product-name, .wc-block-cart__totals-title, .wc-block-components-title { font-family: var(--serif); font-weight: 400; }
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select__select { border-radius: var(--radius); }

/* ---------- "Szeroka strona bez tytułu" template and its block layouts ---------- */
.hf-wide { padding: 56px 0 80px; }
.hf-wide .hf-content { font-size: 17px; }
.hf-wide .hf-content h1 { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.05; margin: 12px 0 18px; }
.hf-wide .hf-content h2 { margin-top: 8px; }
.hf-content p.hf-kicker { margin: 0; font-size: 12px; }
.hf-content p.hf-lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 32px; }

/* Kontakt: text and contact details left, form card right (Columns block, class hf-contact) */
.wp-block-columns.hf-contact { gap: 64px; align-items: flex-start; margin: 0; }
.hf-contact h1 { font-size: 44px; }
.hf-contact .hf-lead { max-width: 420px; }
.hf-content ul.hf-contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 420px; }
.hf-content ul.hf-contact-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.hf-content ul.hf-contact-list li { text-align: right; }
.hf-content ul.hf-contact-list li strong { flex: none; white-space: nowrap; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.hf-content ul.hf-contact-list li a { color: var(--teal); text-decoration: none; }
.hf-content ul.hf-contact-list li a:hover { text-decoration: underline; }
.hf-formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.hf-formcard > h2 { font-size: 26px; margin: 0 0 20px; }
.hf-formcard .wpcf7 form { max-width: none; }
.wpcf7 .hf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Proces tworzenia: photo and text side by side, alternating (Media & Text blocks, class hf-row) */
.hf-content .hf-story-intro { max-width: 720px; margin-bottom: 16px; }
.wp-block-media-text.hf-row { padding: 40px 0; margin: 0; grid-template-columns: 50% auto; }
.wp-block-media-text.hf-row.has-media-on-the-right { grid-template-columns: auto 50%; }
.wp-block-media-text.hf-row .wp-block-media-text__media { border-radius: var(--radius); overflow: hidden; }
.wp-block-media-text.hf-row .wp-block-media-text__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; display: block; }
.wp-block-media-text.hf-row .wp-block-media-text__content { padding: 0 0 0 64px; }
.wp-block-media-text.hf-row.has-media-on-the-right .wp-block-media-text__content { padding: 0 64px 0 0; }
.wp-block-media-text.hf-row .wp-block-media-text__content > *:last-child { margin-bottom: 0; }
.hf-content .wp-block-pullquote.hf-quote { margin: 32px 0; padding: 48px 0; border-width: 1px 0; border-style: solid; border-color: var(--line); text-align: center; }
.hf-content .wp-block-pullquote.hf-quote blockquote { margin: 0; }
.hf-content .wp-block-pullquote.hf-quote p { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1.05; color: var(--teal); margin: 0; }
.hf-content .wp-block-pullquote.hf-quote cite { display: block; margin-top: 12px; color: var(--muted); font-size: 17px; font-style: normal; text-transform: none; }
.hf-content .hf-cta { gap: 24px; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 24px; }
.hf-content .hf-cta p { margin: 0; }
/* The quote above already ends with a rule: one line between them, not two */
.hf-content .wp-block-pullquote + .hf-cta { border-top: 0; padding-top: 0; }
.hf-content p.hf-cta-link a { display: inline-block; border-bottom: 1.5px solid var(--teal); color: var(--teal); padding-bottom: 3px; font-weight: 600; text-decoration: none; }
@media (max-width: 900px) {
	.wp-block-columns.hf-contact { gap: 36px; }
	.hf-wide { padding-top: 36px; }
	.hf-wide .hf-content h1, .hf-contact h1 { font-size: 34px; }
	.hf-formcard { padding: 22px 18px; }
	.wpcf7 .hf-row2 { grid-template-columns: 1fr; gap: 0; }
	.wp-block-media-text.hf-row, .wp-block-media-text.hf-row.has-media-on-the-right { grid-template-columns: 100%; padding: 24px 0; }
	.wp-block-media-text.hf-row .wp-block-media-text__media { grid-column: 1; grid-row: 1; }
	.wp-block-media-text.hf-row .wp-block-media-text__content, .wp-block-media-text.hf-row.has-media-on-the-right .wp-block-media-text__content { grid-column: 1; grid-row: 2; padding: 20px 0 0; }
	.wp-block-media-text.hf-row .wp-block-media-text__media img { aspect-ratio: 16 / 10; }
	.hf-content .wp-block-pullquote.hf-quote p { font-size: 40px; }
}

/* ---------- Contact Form 7 ---------- */
.wpcf7 form { max-width: 560px; }
.wpcf7 form > p, .wpcf7 form .hf-field { margin: 0 0 18px; }
.wpcf7 label { display: block; font-size: 14px; color: var(--muted); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select) { width: 100%; }
.wpcf7 textarea { min-height: 180px; resize: vertical; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 14px; line-height: 1.5; }
.wpcf7 .wpcf7-acceptance input { margin-top: 3px; flex: none; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 13px; color: #B3261E; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-left-color: #B3261E; }

/* [heartfelt_instagram] shortcode */
.hf-ig { display: inline-flex; align-items: center; gap: 8px; }
.hf-ig .hf-ig-icon { flex: none; }
.hf-ig--link { color: var(--teal); font-weight: 600; text-decoration: none; }
.hf-ig--link:hover span { text-decoration: underline; }
.hf-content a.hf-ig--button { color: #fff; text-decoration: none; }

/* Instagram Feed (Smash Balloon): its buttons use an inline blue background */
#sb_instagram .sbi_follow_btn a, #sb_instagram #sbi_load .sbi_load_btn { background: var(--teal) !important; color: #fff !important; border-radius: var(--radius); }
#sb_instagram .sbi_follow_btn a:hover, #sb_instagram #sbi_load .sbi_load_btn:hover { background: var(--ink) !important; box-shadow: none; }

/* ---------- Footer ---------- */
.hf-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 14px; }
.hf-cols { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 40px; }
@media (min-width: 901px) { .hf-cols:not(:has(> :nth-child(3))) { grid-template-columns: 1fr 1.6fr; } }
.hf-footer .hf-brand { width: 128px; height: 128px; }
.hf-footer .hf-footer-h { font-family: inherit; font-size: 12px; line-height: 1.5; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.hf-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hf-footer .menu a:hover, .hf-footer .hf-accent:hover { text-decoration: underline; }
.hf-footer address { font-style: normal; color: var(--muted); line-height: 1.65; }
/* Seller details without a heading: start level with the links under "Informacje" (heading 18 px + 12 px gap) */
@media (min-width: 901px) { .hf-footer .hf-footer-col--untitled { padding-top: 30px; } }
.hf-legal { margin-top: 36px; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hf-legal .hf-cookie-settings { color: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 10px 0; margin: -10px 0; }
.hf-legal .hf-cookie-settings:hover { color: var(--ink); }

/* ---------- Tablet and phone ---------- */
/* Header menu becomes the menu button below 1100 px: logo, four menu items and the tools need about 1050 px */
@media (max-width: 1100px) {
	.hf-bar { grid-template-columns: 1fr auto; }
	.hf-nav, .hf-tag { display: none; }
	.hf-menu-btn { display: inline-flex; }
	.hf-header.open .hf-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(43, 46, 48, .08); padding: 8px 28px 16px; }
	.hf-header.open .hf-nav .menu { flex-direction: column; gap: 0; }
	.hf-header.open .hf-nav .menu a, .hf-header.open .hf-nav .hf-nav-extra { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
	.hf-header.open .hf-nav .menu a { display: block; }
	.hf-header.open .hf-nav .hf-nav-extra { display: none; }
	.hf-header.open .hf-nav > a.hf-nav-extra:last-child { border-bottom: 0; }
}
@media (max-width: 900px) {
	.hf-feature, .single-product .hf-product-top { grid-template-columns: 1fr; gap: 32px; }
	.hf-feature h1 { font-size: 38px; }
	.hf-cols { grid-template-columns: 1fr; }
	.hf-grid { grid-template-columns: 1fr 1fr; }
	.hf-card--big { grid-column: span 2; grid-row: auto; }
	.hf-card--big .hf-card__img { aspect-ratio: 4 / 5; flex: none; }
	.hf-posts { grid-template-columns: 1fr 1fr; }
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 24px; }
	.single-product .summary .product_title { font-size: 34px; }
}
@media (max-width: 600px) {
	.hf-bar.hf-wrap { padding: 0 16px; height: 68px; }
	.hf-brand { width: 48px; height: 48px; }
	.hf-logo { gap: 8px; }
	.hf-wordmark b { font-size: 22px; letter-spacing: .04em; }
	.hf-t-extra { display: none; }
	.hf-header.open .hf-nav { padding: 8px 16px 16px; }
	.hf-header.open .hf-nav .hf-nav-extra { display: block; }
	.hf-cart { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink); font-size: 13px; }
	.hf-wrap { padding: 0 16px; }
	.hf-head { padding-top: 36px; }
	.hf-head h1, .hf-head h2, .woocommerce-products-header__title { font-size: 30px; }
	.hf-entry .hf-head h1 { font-size: 34px; }
	.hf-grid { gap: 28px 14px; }
	.hf-card__title { font-size: 16px; }
	.hf-posts { grid-template-columns: 1fr; }
	.woocommerce-message a.button, .woocommerce-info a.button { float: none; display: inline-flex; margin: 10px 0 0; }
}
.comment-form .form-submit { justify-items: start; }
@media (max-width: 380px) {
	.hf-wordmark b { font-size: 19px; letter-spacing: .02em; }
	.hf-brand { width: 42px; height: 42px; }
	.hf-bar { column-gap: 12px; }
	.hf-cart { padding: 6px 10px; }
}
@media (max-width: 340px) {
	.hf-wordmark b { font-size: 16px; letter-spacing: 0; }
}

/* ---------- Form controls: one size for secondary text, brand colour for radios and checkboxes ---------- */
input[type="radio"], input[type="checkbox"] { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; flex: none; vertical-align: -3px; }
.woocommerce form .form-row label, .woocommerce-form-login__rememberme, .woocommerce-LostPassword, .woocommerce-form-login .lost_password,
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-checkbox-text, .wpcf7 label { font-size: 14px; }
.woocommerce-LostPassword a, .lost_password a { color: var(--teal); }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { font-size: 15px; }
.woocommerce-checkout .wc_payment_method > label { display: inline-flex; align-items: center; gap: 8px; }
.woocommerce ul#shipping_method li input { margin: 0 8px 0 0; }

/* ---------- Checkout summary: names on the left, amounts on the right ---------- */
.woocommerce-checkout table.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table tbody, .woocommerce-checkout-review-order-table tfoot { display: block; }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table tr { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.woocommerce table.woocommerce-checkout-review-order-table th, .woocommerce table.woocommerce-checkout-review-order-table td,
.woocommerce table.woocommerce-checkout-review-order-table tfoot th, .woocommerce table.woocommerce-checkout-review-order-table tfoot td { padding: 0; border: 0; }
.woocommerce table.woocommerce-checkout-review-order-table td { text-align: right; white-space: nowrap; }
.woocommerce table.woocommerce-checkout-review-order-table td.product-name { text-align: left; white-space: normal; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--muted); font-weight: 400; }
.woocommerce-checkout-review-order-table tr.order-total td { font-size: 20px; }

/* Shipping: label on its own line, then one card per option */
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { display: block; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals:has(+ tr.hf-dispatch) { border-bottom: 0; padding-bottom: 10px; }
.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th { display: block; margin-bottom: 12px; }
.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { display: block; text-align: left; white-space: normal; }
:is(.woocommerce-checkout, .woocommerce-cart) ul#shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
:is(.woocommerce-checkout, .woocommerce-cart) ul#shipping_method li {
	position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; margin: 0; padding: 14px 16px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-indent: 0; line-height: 1.4;
}
:is(.woocommerce-checkout, .woocommerce-cart) ul#shipping_method li:has(> input[type="hidden"]) { grid-template-columns: 1fr; }
:is(.woocommerce-checkout, .woocommerce-cart) ul#shipping_method li:has(> input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--card); }
:is(.woocommerce-checkout, .woocommerce-cart) ul#shipping_method li input { margin: 0; }
:is(.woocommerce-checkout, .woocommerce-cart) ul#shipping_method li label { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: center; margin: 0; font-weight: 600; cursor: pointer; }
/* InPost logo (heartfelt_inpost_logo): 20 px tall, its own line above the name */
.hf-ship__logo { grid-column: 1; line-height: 0; }
.hf-ship__logo img, .woocommerce table.shop_table .hf-ship__logo img { display: block; height: 20px; width: auto; max-width: 100%; border-radius: 2px; }
.hf-ship__name { grid-column: 1; }
.hf-ship__price { grid-column: 2; grid-row: 1; text-align: right; }
:is(.woocommerce-checkout, .woocommerce-cart) ul#shipping_method li label:has(.hf-ship__logo) .hf-ship__price { grid-row: 1 / span 2; }
.hf-ship__time { grid-column: 1 / -1; font-size: 13px; font-weight: 400; color: var(--muted); }
/* Flexible Shipping's own "Logo metody" would land in the radio column: the theme shows InPost's logo instead */
:is(.woocommerce-checkout, .woocommerce-cart) ul#shipping_method li .shipping-method-logo { display: none; }
.woocommerce-checkout-review-order-table tr.hf-dispatch { display: block; padding: 0 0 14px; }
.woocommerce table.woocommerce-checkout-review-order-table tr.hf-dispatch td { display: block; text-align: left; white-space: normal; font-size: 13px; font-weight: 400; color: var(--muted); }
/* The whole card selects the option; the pickup-point link stays clickable above it */
:is(.woocommerce-checkout, .woocommerce-cart) ul#shipping_method li label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
:is(.woocommerce-checkout, .woocommerce-cart) .hf-ship__price { flex: none; white-space: nowrap; }
:is(.woocommerce-checkout, .woocommerce-cart) .hf-ship__price .amount { font-weight: 600; }
/* Furgonetka's "Wybierz punkt odbioru": a small outlined button, and the chosen point under it */
.woocommerce-checkout #select-point-container { grid-column: -2; position: relative; z-index: 1; margin: 12px 0 0; }
.woocommerce-checkout #select-point { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--teal); border-radius: var(--radius); background: #fff; color: var(--teal); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.woocommerce-checkout #select-point::before {
	content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce-checkout #select-point:hover { background: var(--teal); color: #fff; }
.woocommerce-checkout #selected-point { display: block; margin-top: 8px; background: none; font-size: 14px; font-weight: 400; color: var(--ink); }
.woocommerce-checkout #selected-point:empty { display: none; }
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; }

/* Show-password button: WooCommerce's icon font is not loaded by the theme, so draw an eye icon */
.woocommerce form .password-input { position: relative; display: block; }
.woocommerce form .password-input input[type="password"], .woocommerce form .password-input input[type="text"] { padding-right: 48px; width: 100%; }
.woocommerce form .show-password-input {
	position: absolute; top: 0; right: 0; bottom: 0; width: 44px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer;
	background: var(--muted); font-size: 0; color: transparent;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.woocommerce form .show-password-input::after { display: none; }
.woocommerce form .show-password-input:hover, .woocommerce form .show-password-input.display-password { background: var(--teal); }
.woocommerce form .show-password-input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Single product: shorter main photo, details stay in view ---------- */
.single-product .woocommerce-product-gallery__image img { aspect-ratio: 4 / 5; object-fit: cover; height: auto; }
@media (min-width: 901px) {
	.single-product div.product .summary { position: sticky; top: 104px; }
	.admin-bar.single-product div.product .summary { top: 136px; }
}

/* ---------- Footer: touch-sized links on phones ---------- */
@media (max-width: 900px) {
	.hf-footer .menu { gap: 0; }
	.hf-footer .menu a, .hf-footer a.hf-ig, .hf-legal .hf-cookie-settings { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 0; }
}

/* ---------- Legal documents (Regulamin, Polityka prywatności, Polityka cookies) ---------- */
.hf-doc { font-size: 16px; line-height: 1.65; }
.hf-doc p { margin: 0 0 .75em; }
.hf-doc .hf-doc-title { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin: 0 0 20px; }
.hf-doc .hf-doc-title strong { font-weight: 400; }
.hf-content .hf-doc h2.hf-doc-h { font-size: 24px; margin: 2em 0 .6em; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.hf-doc h2 .hf-num { color: var(--teal); margin-right: .2em; }
/* Numbered points keep their own numbers ("1.", "10.a", "a", "-") as text; a hanging indent lines the text up */
.hf-doc p.hf-pt { padding-left: 2.6em; text-indent: -2.6em; }
.hf-doc p.hf-pt-2 { margin-left: 2.6em; padding-left: 2.4em; text-indent: -2.4em; }
.hf-doc p.hf-pt-3 { margin-left: 5em; padding-left: 1.2em; text-indent: -1.2em; }
.hf-doc p.hf-def strong { color: var(--ink); }
.hf-doc ul, .hf-doc ol { margin: 0 0 1em; padding-left: 1.6em; }
.hf-doc li { margin: 0 0 .4em; }
.hf-doc li > ol { margin-top: .4em; }
.hf-doc a { overflow-wrap: anywhere; }
/* Table of contents */
.hf-doc ul.hf-toc { list-style: none; padding: 18px 22px; margin: 0 0 32px; background: var(--card); border-radius: var(--radius); columns: 2 280px; column-gap: 32px; font-size: 15px; }
.hf-doc ul.hf-toc li { break-inside: avoid; margin: 0; padding: 4px 0; }
.hf-content .hf-doc ul.hf-toc a { color: var(--ink); text-decoration: none; }
.hf-content .hf-doc ul.hf-toc a:hover { color: var(--teal); text-decoration: underline; }
/* Download links */
.hf-doc .hf-downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.hf-doc p.hf-download { margin: 0; }
.hf-content .hf-doc p.hf-download a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--teal); border-radius: var(--radius); color: var(--teal); text-decoration: none; font-size: 15px; font-weight: 600; }
.hf-content .hf-doc p.hf-download a::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.hf-content .hf-doc p.hf-download a:hover { background: var(--teal); color: #fff; }
/* Sample forms: shown as a sheet of paper; the dotted fill-in lines may wrap on narrow screens */
.hf-doc .hf-form-sample { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin: 0 0 24px; font-size: 15px; overflow-wrap: anywhere; }
.hf-doc .hf-form-sample p { margin: 0 0 1.2em; }
.hf-doc .hf-form-sample p:last-child { margin-bottom: 0; }
.hf-doc p.hf-form-to { text-align: right; }
@media (max-width: 600px) {
	.hf-doc { font-size: 15px; }
	.hf-content .hf-doc h2.hf-doc-h { font-size: 21px; }
	.hf-doc p.hf-pt { padding-left: 2.2em; text-indent: -2.2em; }
	.hf-doc p.hf-pt-2 { margin-left: .8em; padding-left: 2.2em; text-indent: -2.2em; }
	.hf-doc p.hf-pt-3 { margin-left: 1.6em; }
	.hf-doc .hf-form-sample { padding: 20px 18px; }
	.hf-doc p.hf-form-to { text-align: left; }
}

/* ---------- Cart: items on the left, summary on the right ---------- */
.woocommerce-cart .woocommerce::before, .woocommerce-cart .woocommerce::after { display: none; }
.woocommerce-cart .woocommerce > :not(.woocommerce-cart-form):not(.cart-collaterals) { grid-column: 1 / -1; }
.woocommerce-cart .cart-collaterals { float: none; width: auto; }
.woocommerce-cart .cart-collaterals .cart_totals > h2 { margin-top: 0; }
@media (min-width: 901px) {
	.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
	.woocommerce-cart .cart-collaterals { position: sticky; top: 104px; }
}
.woocommerce-cart table.cart img { width: 88px; }
.woocommerce-cart table.cart td.product-name a { color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.woocommerce-cart table.cart td.product-name a:hover { color: var(--teal); }
/* One-off pieces: no quantity, no unit price (same as the amount), nothing to update */
.hf-cart-single table.cart :is(th.product-price, td.product-price, th.product-quantity, td.product-quantity) { display: none; }
.hf-cart-single table.cart button[name="update_cart"] { display: none; }
.hf-cart-single table.cart tr:has(> td.actions):not(:has(.coupon)) { display: none; }
.hf-cart-single table.cart td.product-subtotal { text-align: right; font-weight: 600; }
.hf-cart-single table.cart th.product-subtotal { text-align: right; }

/* Cart summary: same rows as the checkout summary */
.cart_totals table.shop_table, .cart_totals table.shop_table tbody { display: block; }
.cart_totals table.shop_table tr { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.woocommerce .cart_totals table.shop_table th, .woocommerce .cart_totals table.shop_table td { padding: 0; border: 0; }
.woocommerce .cart_totals table.shop_table td { text-align: right; }
.woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals { display: block; }
.woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals th { display: block; margin-bottom: 12px; }
.woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals td { display: block; text-align: left; }
.cart_totals tr.order-total td { font-size: 20px; }
.cart_totals .woocommerce-shipping-destination { margin: 12px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout a.checkout-button { display: block; width: 100%; text-align: center; padding: 16px 28px; }
.hf-cart-continue { margin: 14px 0 0; text-align: center; font-size: 14px; }
.hf-cart-continue a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* VAT note and "edit order" row, in both summaries */
:is(.cart_totals, .woocommerce-checkout-review-order-table) tr.hf-vat { border-bottom: 0 !important; padding: 8px 0 0 !important; }
:is(.cart_totals, .woocommerce-checkout-review-order-table) tr.hf-vat td { font-size: 13px !important; font-weight: 400 !important; color: var(--muted); white-space: normal !important; width: 100%; }
.woocommerce-checkout-review-order-table tr.hf-edit-order { padding: 10px 0; border-bottom: 1px solid var(--line); justify-content: flex-end; }
.woocommerce table.woocommerce-checkout-review-order-table tr.hf-edit-order td { width: 100%; font-size: 14px; }
.hf-edit-order a, .hf-back a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.hf-back { margin: -8px 0 20px; font-size: 14px; }

/* ---------- Checkout form: compact, fields in pairs ---------- */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper, .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.woocommerce-checkout .form-row { float: none; width: auto; margin: 0 0 14px; padding: 0; }
.woocommerce-checkout .form-row-wide { grid-column: 1 / -1; }
.woocommerce-checkout .form-row label { display: block; margin-bottom: 4px; line-height: 1.3; }
.woocommerce-checkout .form-row .input-text { width: 100%; padding: 9px 12px; }
.woocommerce-checkout .form-row .woocommerce-input-wrapper { display: block; }
.woocommerce-checkout #billing_country_field strong { display: inline-block; }
.hf-field-note { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.woocommerce-checkout .woocommerce-account-fields { grid-column: 1 / -1; }
/* Pairs by id: other scripts and plugins reset the form-row-first/last classes of these fields */
@media (min-width: 481px) {
	.woocommerce-checkout #billing_first_name_field, .woocommerce-checkout #billing_postcode_field, .woocommerce-checkout #billing_phone_field { grid-column: 1; }
	.woocommerce-checkout #billing_last_name_field, .woocommerce-checkout #billing_city_field, .woocommerce-checkout #billing_email_field { grid-column: 2; }
}
@media (max-width: 480px) {
	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* Links in the checkout texts must look like links */
.woocommerce-checkout .woocommerce-privacy-policy-text a, .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a, .woocommerce-checkout #payment a:not(.button) { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-checkout .woocommerce-privacy-policy-text a:hover, .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a:hover { color: var(--ink); }
