/*
Theme Name: Woodmart Child
Template: woodmart
Version: 1.0.0
*/

/* ============================================================
   PUNKT 5 – Wyszukiwarka: usunięcie grafiki z banera (Ścieżka B)
   ============================================================ */
.search .wd-page-title,
.search-results .wd-page-title {
	background-image: none !important;
	min-height: 0 !important;
}

/* ============================================================
   PUNKT 6 – Opis produktu: układ Baselinker (sekcje flex)
   ============================================================ */

/* Siatka sekcji Baselinker w opisie produktu */
.woocommerce-Tabs-panel--description .section,
.woocommerce-product-details__short-description .section {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.woocommerce-Tabs-panel--description .item-12,
.woocommerce-product-details__short-description .item-12 {
	flex: 0 0 100%;
	max-width: 100%;
}

.woocommerce-Tabs-panel--description .item-6,
.woocommerce-product-details__short-description .item-6 {
	flex: 1 1 calc(50% - 8px);
	max-width: calc(50% - 8px);
	min-width: 240px;
}

/* Zdjęcia w opisie: ograniczenie rozmiaru */
.woocommerce-Tabs-panel--description .image-item img,
.woocommerce-product-details__short-description .image-item img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Typografia specyfikacji */
.woocommerce-Tabs-panel--description .text-item h1,
.woocommerce-Tabs-panel--description .text-item h2,
.woocommerce-product-details__short-description .text-item h1,
.woocommerce-product-details__short-description .text-item h2 {
	font-size: 1.1em;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.3;
}

.woocommerce-Tabs-panel--description .text-item ul,
.woocommerce-Tabs-panel--description .text-item ol,
.woocommerce-product-details__short-description .text-item ul,
.woocommerce-product-details__short-description .text-item ol {
	font-size: 14px;
	line-height: 1.45;
	padding-left: 18px;
	margin: 0;
}

.woocommerce-Tabs-panel--description .text-item li,
.woocommerce-product-details__short-description .text-item li {
	margin-bottom: 4px;
}

/* Fallback dla globalnych obrazków w opisie (nie-Baselinker) */
.woocommerce-Tabs-panel--description .entry-content img {
	max-width: 50%;
}

/* Responsywność – na małych ekranach pełna szerokość */
@media (max-width: 768px) {
	.woocommerce-Tabs-panel--description .item-6,
	.woocommerce-product-details__short-description .item-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* ============================================================
   PUNKT 8 – Globalna skala: zmniejszenie typografii o ~12%
   ============================================================ */
:root {
	--wd-text-font-size: 14px;
}

html {
	font-size: 14px !important;
}

/* Nagłówki produktów i kategorii */
.woocommerce-product-details__short-description,
.wc-block-components-product-name,
.product_title {
	font-size: 1.1rem;
}

/* Marginesy sekcji strony głównej */
.woodmart-section {
	padding-top: 32px !important;
	padding-bottom: 32px !important;
}

/* Karty produktów: ograniczenie wysokości */
.woodmart-product-loop-wrap .wd-product-grid .product,
.woodmart-product-loop-wrap .wd-product-list .product {
	font-size: 0.875rem;
}

/* ============================================================
   Siatka produktów: dwukrotnie większe odstępy (20px → 40px)
   ============================================================ */
.wd-products[class*="wd-grid"] {
	--wd-gap-lg: 40px;
}

/* ============================================================
   Metody wysyłki: logo | nazwa | cena
   ============================================================ */
.woocommerce-shipping-methods li {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}
.woocommerce-shipping-methods li:last-child {
	margin-bottom: 0;
}
.woocommerce-shipping-methods input.shipping_method {
	float: none !important;
	position: static !important;
	top: 0 !important;
	flex-shrink: 0;
	margin: 0 !important;
}
.woocommerce-shipping-methods label {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}
.woocommerce-shipping-methods li > div {
	flex: 0 0 100%;
}
.sinpi-shipping-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	flex-shrink: 0;
}
.sinpi-shipping-logo img {
	max-height: 22px;
	max-width: 48px;
	object-fit: contain;
	display: block;
}
.sinpi-shipping-name {
	flex: 1;
	min-width: 0;
}
.sinpi-shipping-price {
	white-space: nowrap;
	margin-left: auto;
}

/* InPost: logo wstrzykiwane po <label> — wsuwamy między checkbox a label */
.woocommerce-shipping-methods label {
	order: 3;
}
.woocommerce-shipping-methods .inpost_pl-shipping-method-meta-wrap {
	order: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	flex-shrink: 0;
}
.woocommerce-shipping-methods .inpost_pl_shipping_meta {
	display: flex;
	align-items: center;
}
.woocommerce-shipping-methods .inpost_pl_shipping_meta img {
	max-height: 22px;
	max-width: 48px;
	object-fit: contain;
	display: block;
}
