/*
Theme Name: MebloTaniej (Storecraft)
Template: storecraft-furniture
Description: System wyglądu MebloTaniej na bazie Storecraft Furniture — outlet mebli ze zwrotów Beliani.
Version: 1.0.0
*/

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter-400-latin.woff2') format('woff2');
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter-400-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/inter-500-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/inter-600-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/sourceserif4-600-latin.woff2') format('woff2');
}

:root {
	--mt-len: #F7F5F1;
	--mt-white: #FFFFFF;
	--mt-piasek: #EFECE6;
	--mt-grafit: #1C1C1A;
	--mt-szary: #6E6B66;
	--mt-kamien: #E3DFD8;
	--mt-terakota: #A3482A;
	--mt-mech: #3F6B4E;
	--mt-ochra: #9A6A12;

	--mt-font-heading: 'Source Serif 4', Georgia, serif;
	--mt-font-body: 'Inter', -apple-system, sans-serif;

	--mt-space-1: 4px;
	--mt-space-2: 8px;
	--mt-space-3: 12px;
	--mt-space-4: 16px;
	--mt-space-5: 24px;
	--mt-space-6: 32px;
	--mt-space-7: 48px;
	--mt-space-8: 64px;
}

body, p, li, a, span, div, input, select, textarea, button {
	font-family: var(--mt-font-body);
	color: var(--mt-grafit);
}
h1, h2, h3, h4, h5, h6,
.hbs-slider-title, .hbs-living-banner__heading, .hbs-featured-section__heading,
.hbs-blog-demo__heading, .hbs-section-title {
	font-family: var(--mt-font-heading) !important;
	color: var(--mt-grafit) !important;
	font-weight: 600;
}
a { color: var(--mt-grafit); }
a:hover { color: var(--mt-terakota); }

/* Pasek newslettera w stopce ma ciemne (granatowe) tło — tekst musi zostać biały,
   mimo ogólnej reguły h1-h6/p { color: var(--mt-grafit) !important } wyżej.
   Reszta stopki (jasnoniebieska) zostaje w grafitowym tekście — nie dotykać. */
.hbs-footer-v3__newsletter,
.hbs-footer-v3__newsletter p,
.hbs-footer-v3__newsletter h1, .hbs-footer-v3__newsletter h2, .hbs-footer-v3__newsletter h3,
.hbs-footer-v3__newsletter-kicker,
.hbs-footer-v3__newsletter-title,
.hbs-footer-v3__newsletter-success {
	color: #fff !important;
}
.hbs-footer-v3__newsletter-success { font-size: 16px; font-weight: 600; }

body { background-color: var(--mt-len); }

/* Przyciski */
.sbtn1, .hbs-living-banner__btn--primary, .hbs-featured-promo__btn,
button[type="submit"], input[type="submit"], .button, .add_to_cart_button,
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button,
.single_add_to_cart_button {
	background-color: var(--mt-grafit) !important;
	border-color: var(--mt-grafit) !important;
	color: #fff !important;
	border-radius: 4px !important;
	font-family: var(--mt-font-body) !important;
	font-weight: 600 !important;
	text-transform: none !important;
	box-shadow: none !important;
}
.sbtn1:hover, .hbs-living-banner__btn--primary:hover, button[type="submit"]:hover,
.add_to_cart_button:hover, .single_add_to_cart_button:hover {
	background-color: var(--mt-terakota) !important;
	border-color: var(--mt-terakota) !important;
}
.sbtn1--ghost, .hbs-living-banner__btn--secondary {
	background-color: transparent !important;
	border: 1px solid #fff !important;
	color: #fff !important;
}

/* Pola formularzy */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="search"], textarea, select {
	border: 1px solid var(--mt-kamien) !important;
	border-radius: 4px !important;
	background-color: var(--mt-white) !important;
	color: var(--mt-grafit) !important;
}
input::placeholder, textarea::placeholder { color: var(--mt-szary) !important; opacity: 1; }

/* Odznaki stanu / rabatu (współdzielone z poprzednim motywem) */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { position: relative; display: block; }
.mt-badge { display: inline-block; padding: 4px 8px; border-radius: 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; position: absolute; top: 8px; left: 8px; z-index: 2; }
.mt-badge--new { background-color: var(--mt-terakota); color: #fff; }
.mt-badge--class-b { background-color: var(--mt-white); border: 1px solid var(--mt-ochra); color: var(--mt-ochra); }
.mt-badge--savings { background-color: var(--mt-terakota); color: #fff; left: auto; right: 8px; }

/* Zgoda na opisaną wadę — bez obramowania, pełny opis jest w zakładce "Cechy" */
.mt-defect-consent { margin-bottom: 16px; font-size: 14px; }
.mt-defect-consent label { display: flex; align-items: center; gap: 8px; }

/* Pasek oszczędności tuż pod ceną */
.mt-savings-strip { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.mt-savings-strip del { color: var(--mt-szary); font-size: 16px; }
.mt-savings-strip__badge {
	background-color: var(--mt-terakota);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 2px;
}
.mt-unique-note {
	font-size: 14px;
	color: var(--mt-szary);
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}
.mt-unique-note i { color: var(--mt-ochra); }

/* Skrócone fakty pod przyciskiem "Dodaj do koszyka" — płynący tekst edytorialny
   (wzór: Chairish "Details"), NIE tabelka/siatka ze stałymi kolumnami, bo to
   czyta się jak generyczny wygenerowany komponent. Jedna eyebrow-etykieta +
   jeden akapit zdań, bez linii/ramek wewnątrz. */
.mt-quick-facts {
	margin: 36px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--mt-kamien);
	max-width: 440px;
}
.mt-quick-facts__eyebrow {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7a560e;
	margin: 0 0 10px;
}
.mt-quick-facts__line {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--mt-szary);
}

.mt-dims-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.mt-dims-table td { padding: 6px 0; border-bottom: 1px solid var(--mt-kamien); }

/* Filtry sklepu (stan + cena) */
.mt-filters { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; padding: 16px 0 24px; border-bottom: 1px solid var(--mt-kamien); margin-bottom: 24px; }
.mt-filters__field { display: flex; flex-direction: column; gap: 4px; }
.mt-filters__field label { font-size: 13px; color: var(--mt-szary); }
.mt-filters__field select, .mt-filters__field input { height: 44px; padding: 0 12px; }
.mt-filters__field input[type="number"] { width: 100px; }
.mt-filters__reset { color: var(--mt-szary); text-decoration: underline; font-size: 14px; }

/* Stopka — dostępność (hidden footer link fix nie dotyczy tego motywu, ale zostawiamy spójność linków) */
a.hbs-living-banner__btn, .hbs-view-all-link { color: var(--mt-terakota); }

/* Sekcja leadów */
.mt-newsletter { background-color: var(--mt-white); text-align: center; padding: 48px 16px; }
.mt-newsletter__form { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.mt-newsletter__form input { height: 48px; flex: 1; max-width: 320px; padding: 0 12px; }
.mt-newsletter__success { color: var(--mt-mech); font-weight: 600; }
.mt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Pasek informacyjny (dostawa/odbiór) */
.mt-infobar { background-color: var(--mt-grafit); color: #fff; text-align: center; padding: 10px 16px; font-size: 14px; }

/* Tabela dostawy */
.mt-delivery { padding: 48px 16px; max-width: 1140px; margin: 0 auto; }
.mt-delivery__table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.mt-delivery__table th, .mt-delivery__table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--mt-kamien); }
.mt-delivery__note { color: var(--mt-szary); font-size: 14px; }

/* Stopka z menu prawnym */
.mt-footer-menu { background-color: var(--mt-grafit); padding: 24px 32px; }
.mt-footer-menu__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 0; padding: 0; }
.mt-footer-menu__list a { color: var(--mt-len); font-size: 14px; text-decoration: none; }
.mt-footer-menu__list a:hover { color: var(--mt-terakota); }

/* Motyw pokazuje na desktopie zdublowany wiersz Log in/Cart (mobile-only wiersz
   nie jest chowany jak powinien) — chowamy go nad breakpointem mobilnym. */
@media (min-width: 993px) {
	.hbs-h3-utilities--mobile { display: none !important; }
}

/* Kontrast WCAG AA: domyślne szarości motywu (#8a8a8a, #6b7280) nie dawały 4.5:1
   na jasnych tłach — Lighthouse color-contrast. */
.hbs-living-banner__eyebrow, .hbs-banner-kicker,
.hbs-featured-promo__kicker {
	color: #5a5a58 !important;
}
.hbs-footer-v3__copyright {
	color: #5a5a58 !important;
}
#inner-pages-header .theme-breadcrumb a,
#inner-pages-header .theme-breadcrumb span {
	color: #5a5a58 !important;
}
.nav-subtitle {
	color: #5a5a58 !important;
}
.hbs-product-breadcrumb a,
.hbs-product-breadcrumb span {
	color: #5a5a58 !important;
}
.woocommerce-tabs ul.tabs li a,
.woocommerce-tabs ul.tabs li.tabs a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: #5a5a58 !important;
}

/* Nowa dostawa — sekcja zaraz pod hero */
.mt-new-delivery__head { margin-bottom: var(--mt-space-5); }
.mt-new-delivery__lead { color: var(--mt-szary); margin-top: var(--mt-space-2); }
.mt-new-delivery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mt-space-4);
}
@media (min-width: 768px) { .mt-new-delivery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .mt-new-delivery__grid { grid-template-columns: repeat(4, 1fr); } }
.mt-new-delivery__empty { color: var(--mt-szary); padding: var(--mt-space-6) 0; }
.mt-new-delivery__more { margin-top: var(--mt-space-5); }

/* Siatka kategorii na stronie głównej (zawsze widoczna, port z Blocksy) */
.mt-category-section { padding: var(--mt-space-7) 0; }
.mt-category-section__heading { text-align: center; margin-bottom: var(--mt-space-5); }
.mt-category-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--mt-space-4);
}
@media (min-width: 768px) { .mt-category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .mt-category-grid { grid-template-columns: repeat(5, 1fr); } }
.mt-category-tile { display: block; text-decoration: none; text-align: center; }
.mt-category-tile img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-bottom: var(--mt-space-2); border-radius: 4px; }
.mt-category-tile span { font-size: 15px; color: var(--mt-grafit) !important; font-weight: 600; }
.mt-category-tile:hover span { color: var(--mt-terakota) !important; }

/* Kontakt — szybkie kafelki (telefon/whatsapp/e-mail) */
.mt-contact-quick {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--mt-space-3);
	margin: var(--mt-space-5) 0;
}
@media (min-width: 768px) { .mt-contact-quick { grid-template-columns: repeat(4, 1fr); } }
.mt-contact-quick__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--mt-space-4);
	background-color: var(--mt-white);
	border: 1px solid var(--mt-kamien);
	border-radius: 4px;
	text-decoration: none;
}
.mt-contact-quick__item:hover { border-color: var(--mt-terakota); }
.mt-contact-quick__label { font-size: 13px; color: var(--mt-szary); text-transform: uppercase; letter-spacing: 0.04em; }
.mt-contact-quick__value { font-size: 17px; color: var(--mt-grafit) !important; font-weight: 600; }

/* Formularz kontaktowy */
.mt-contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mt-space-4); margin-top: var(--mt-space-5); max-width: 720px; }
.mt-contact-form__row { display: flex; flex-direction: column; gap: 6px; }
.mt-contact-form__row--full { grid-column: 1 / -1; }
.mt-contact-form label { font-size: 14px; color: var(--mt-szary); }
.mt-contact-form .sbtn1 { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 600px) { .mt-contact-form { grid-template-columns: 1fr; } }
.mt-contact-success { color: var(--mt-mech); font-weight: 600; }
.mt-contact-error { color: var(--mt-terakota); font-weight: 600; }

/* Kontakt w stopce — lista telefonów, e-maili i WhatsApp */
.mt-contact-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.mt-contact-list a { color: var(--mt-grafit) !important; text-decoration: none; }
.mt-contact-list a:hover { color: var(--mt-terakota) !important; }
.mt-contact-list i { width: 16px; text-align: center; color: var(--mt-terakota); }
.mt-contact-list__wa { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-contact-list a.mt-contact-list__whatsapp { display: inline-flex; color: #25D366 !important; }
.mt-contact-list a.mt-contact-list__whatsapp:hover { color: #1ebe5a !important; }
.mt-contact-address { font-size: 14px; color: var(--mt-szary); margin: 0 0 12px; }
.mt-contact-form-link { font-size: 14px; margin: 0 0 16px; }
.mt-contact-form-link a { color: var(--mt-terakota) !important; text-decoration: underline; }

/* Logo w nagłówku: większe (było 80px wysokości) */
header .custom-logo { height: auto; width: auto; max-height: 104px !important; max-width: none; }
@media (max-width: 767px) { header .custom-logo { max-height: 64px !important; } }
