/* Single product: kategoria nad tytułem */
.single-product .product-category {
	color: var(--Foundation-Orange-O300, #1e1e1e);
	font-size: 24px;
	font-weight: 400;
	line-height: 134%;
	margin: 0 0 8px;
}

.woocommerce table.shop_table {
	border: 1px solid rgba(0, 0, 0, 0) !important;
}

/* Single product: nazwa produktu */
.single-product .product_title.entry-title {
	color: var(--Foundation-Grey-G900, #1e1e1e);
	font-size: 40px;
	font-weight: 700;
	line-height: 110%;
	/* 44px */
}

/* Single product: Kod produktu */
.single-product .product-code {
	color: var(--Foundation-Grey-G900, #1e1e1e);
	font-size: 10px;
	font-weight: 400;
	line-height: 160%;
	/* 16px */
	margin: 4px 0 0;
}

/* Single product: Ocena */
.single-product .psl-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 0;
}

.single-product .psl-rating__stars {
	display: inline-flex;
	gap: 2px;
}

/* Większe gwiazdki */
.single-product .psl-rating__stars svg {
	width: 30px;
	height: 30px;
}

/* Ocena X/5 */
.single-product .psl-rating__value {
	font-size: 24px;
	color: var(--Foundation-Orange-O300, #1e1e1e);
	line-height: 160%;
}

/* Liczba opinii (w nawiasie) */
.single-product .psl-rating__count {
	font-size: 16px;
	color: var(--Foundation-Orange-O300, #1e1e1e);
	line-height: 160%;
	margin-left: 4px;
}

.single-product .psl-rating__meta {
	color: var(--Foundation-Grey-G900, #1e1e1e);
	font-size: 10px;
	font-weight: 400;
	display: flex;
	align-items: center;
	line-height: 160%;
	/* 16px */
}

.wc-proceed-to-checkout {
	padding: 0 !important;
}

/* Quantity Layout */
.woocommerce .quantity,
.quantity {
	display: flex !important;
	align-items: center;
	flex-wrap: nowrap;
	gap: 5px;
	/* Opcjonalny odstęp */
}

.woocommerce .summary.entry-summary .quantity .qty {
	border-radius: 8px !important;
	border: 1px solid var(--Foundation-Grey-G70, #aeaeae) !important;
	background-color: transparent !important;
	padding: 0 5px !important;
	height: 52px;
}

.minus-btn,
.plus-btn {
	width: unset !important;
	line-height: unset !important;
	display: flex;
	align-items: center;
}

.minus-btn {
	margin-left: 8px;
}

.plus-btn {
	margin-right: 8px;
}

.minus-btn i,
.plus-btn i {
	border-radius: 4px;
	padding: 6px !important;
	border: 1px solid var(--Foundation-Grey-G70, #aeaeae);
	color: var(--Foundation-Orange-O300, #1e1e1e) !important;
}

a.button,
.woocommerce button.button,
.woocommerce input.button {
	text-transform: none !important;

	display: flex;
	height: 52px;
	padding: 11px 32px !important;
	justify-content: center;
	align-items: center;

	border-radius: 8px !important;
	background: var(--Foundation-Orange-O300, #1e1e1e);
}

@media (min-width: 1170px) {

	.woocommerce .cart-collaterals:has(.cart_totals),
	.woocommerce-page .cart-collaterals:has(.cart_totals) {
		width: 30% !important;
	}
}


.checkout_coupon.woocommerce-form-coupon button {
	width: 100% !important;
	margin-top: 5px;
}

.default-btn {
	border-radius: 8px !important;
}

a.button,
.woocommerce button.button,
.woocommerce input.button:disabled {
	pointer-events: none !important;
	background: var(--Foundation-Orange-O300, #1e1e1e);
}

/* Breadcrumb (globalnie, jak WooCommerce) */
.breadcrumb.justify-content-center {
	justify-content: start !important;
}

.page-title-area nav[aria-label="breadcrumb"],
.page-title-area .breadcrumb {
	--bs-breadcrumb-divider: "/";
}

.page-title-area .breadcrumb-item+.breadcrumb-item::before {
	content: "/";
}

.page-title-area .breadcrumb .breadcrumb-item:first-child>a {
	display: inline-flex;
	align-items: center;
	font-size: 0;
	/* ukryj napis "Home" */
}

.page-title-area .breadcrumb .breadcrumb-item:first-child>a::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-house-door" viewBox="0 0 16 16"><path d="M8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4.5a.5.5 0 0 0 .5-.5v-4h2v4a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293zM2.5 14V7.707l5.5-5.5 5.5 5.5V14H10v-4a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v4z"/></svg>') no-repeat center / contain;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-house-door" viewBox="0 0 16 16"><path d="M8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4.5a.5.5 0 0 0 .5-.5v-4h2v4a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293zM2.5 14V7.707l5.5-5.5 5.5 5.5V14H10v-4a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v4z"/></svg>') no-repeat center / contain;
}

.page-title-area {
	background: none !important;
	padding: 0 !important;
}

.page-title-content h1 {
	display: none !important;
}

/* Dropdown: prosta strzałka w dół zamiast plusa z boxicons */
.haine-mobile-menu .site-main-menu ul li.menu-item-has-children::after {
	content: "›";
	/* alternatywa: "▼" lub "▾" */
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-family: inherit !important;
	/* nie używaj ikonowego fontu */
	font-weight: 700;
	display: inline-block;
	margin-left: 15px;
	vertical-align: middle;
}


/* Custom Cart Styles */
.product-categories-small {
	font-size: 11px;
	color: #777;
	margin-bottom: 5px;
	line-height: 1.2;
}

.product-remove-wrapper .remove {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	color: #be1622 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	margin-top: 5px;
	text-decoration: none;
	width: auto !important;
	height: auto !important;
	background: none !important;
	border: none !important;
}

.product-remove-wrapper .remove:hover {
	color: #d33d04 !important;
	background: none !important;
	text-decoration: underline !important;
}

.product-remove-wrapper .remove-icon {
	font-size: 18px;
	line-height: 1;
}

/* Coupon & Totals */
.actions .coupon {
	display: none !important;
	/* Hide default coupon field in table footer */
}

.custom-coupon-toggle {
	width: 100%;
	margin-top: 10px;
	background-color: transparent !important;
	color: #1e1e1e !important;
	border: 1px solid #1e1e1e !important;
	transition: all 0.2s ease;
}

.custom-coupon-toggle:hover {
	background-color: #1e1e1e !important;
	color: #fff !important;
}

.payment-methods-img img {
	margin: 0 auto;
	display: block;
}

#add_payment_method table.cart .product-thumbnail,
.woocommerce-cart table.cart .product-thumbnail,
.woocommerce-checkout table.cart .product-thumbnail {
	width: 100px !important;
}

/* Cart Totals Font Size Fix */
.cart_totals table th,
.cart_totals table td {
	font-size: 14px;
	padding: 10px 0;
}

.shop_table.cart th {
	opacity: 70% !important;
}

.shop_table .product-subtotal bdi {
	font-weight: 800 !important;
}

.cart_totals h2 {
	font-size: 20px;
	margin-bottom: 15px;
	text-align: center !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.woocommerce-cart-form__cart-item {
		border-bottom: 1px solid #eee;
		padding: 15px 0;
		margin-bottom: 15px;
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: wrap;
		gap: 15px;
		align-items: flex-start;
	}

	.woocommerce-cart-form__cart-item td {
		display: block !important;
		padding: 0 !important;
		border: 0 !important;
		text-align: left !important;
		width: 100% !important;
	}

	/* Thumbnail restoration */
	.woocommerce-cart-form__cart-item .product-thumbnail {
		width: 80px !important;
		flex-shrink: 0;
		display: block !important;
	}

	.woocommerce-cart-form__cart-item .product-thumbnail img {
		width: 80px !important;
		height: auto !important;
		border-radius: 8px;
		display: block !important;
	}

	.woocommerce-cart-form__cart-item .product-thumbnail::before {
		display: none !important;
	}

	/* Right column content (Name, price, etc.) */
	.woocommerce-cart-form__cart-item .product-name {
		flex: 1;
		/* width: calc(100% - 95px) !important; */
	}



	.woocommerce-cart-form__cart-item .product-price,
	.woocommerce-cart-form__cart-item .product-quantity,
	.woocommerce-cart-form__cart-item .product-subtotal {
		width: 100% !important;
		margin-top: 10px;
		padding-left: 95px !important;
		/* Align with text under image if needed, or keep full width */
	}

	/* Adjust labels for block-display TDs */
	.woocommerce-cart table.cart .woocommerce-cart-form__cart-item td::before {
		content: attr(data-title) ": ";
		font-weight: 700;
		display: inline-block;
		margin-right: 5px;
	}

	.woocommerce-cart table.cart .woocommerce-cart-form__cart-item td.product-thumbnail::before,
	.woocommerce-cart table.cart .woocommerce-cart-form__cart-item td.product-name::before {
		content: none !important;
	}

	.product-remove-wrapper {
		text-align: left;
		margin-top: 8px;
	}
}

@media only screen and (max-width: 768px) {

	.woocommerce table.shop_table_responsive tr:nth-child(2n) td,
	.woocommerce-page table.shop_table_responsive tr:nth-child(2n) td,
	.woocommerce table.shop_table_responsive tr:nth-child(2n) td,
	.woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
		background-color: transparent !important;
	}
}

/* Product Archive: Stock Status */
.product-stock-status {
	display: block;
	margin-top: 8px;
	text-align: left;
	font-size: 12px;
	font-weight: 600;
}

.product-stock-status.stock-available {
	color: #28a745;
	/* Zielony */
}

.product-stock-status.stock-unavailable {
	color: #dc3545;
	/* Czerwony */
}

/* Product Archive: Add to Cart Button - WooCommerce już generuje przycisk */
.woocommerce ul.products li.product .button {
	display: inline-block;
	width: 100%;
	margin-top: 10px;
	padding: 12px 20px;
	background-color: #1e1e1e;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.woocommerce ul.products li.product .button:hover {
	background-color: #333;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	color: #fff;
	text-decoration: none;
}

.woocommerce ul.products li.product .button:active {
	transform: translateY(0);
}