/* Add-to-cart toast — bottom-left on catalog pages */

.shop-toast {
	position: fixed;
	left: 1.25rem;
	bottom: 1.25rem;
	z-index: 10050;
	width: min(100vw - 2.5rem, 360px);
	pointer-events: none;
}

.shop-toast__panel {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 12px 32px rgba(24, 36, 44, 0.16);
	transform: translateY(16px);
	opacity: 0;
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: auto;
}

.shop-toast.is-visible .shop-toast__panel {
	transform: translateY(0);
	opacity: 1;
}

.shop-toast.is-success .shop-toast__panel {
	border-color: #b8dfd6;
	background: linear-gradient(180deg, #f4fbf9 0%, #ffffff 100%);
}

.shop-toast.is-error .shop-toast__panel {
	border-color: #f0c4c4;
	background: #fff7f7;
}

.shop-toast__content {
	flex: 1;
	min-width: 0;
}

.shop-toast__title {
	margin: 0;
	color: #1a2b24;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
}

.shop-toast__detail {
	margin: 0.35rem 0 0;
	color: #6b7280;
	font-size: 0.8125rem;
	line-height: 1.45;
}

.shop-toast__link {
	display: inline-block;
	margin-top: 0.65rem;
	color: #1f7a6e;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
}

.shop-toast__link:hover,
.shop-toast__link:focus {
	color: #15584f;
	text-decoration: underline;
}

.shop-toast__close {
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #6b7280;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.shop-toast__close:hover,
.shop-toast__close:focus {
	background: rgba(26, 43, 36, 0.06);
	color: #1a2b24;
}

.site-main--shop .woocommerce-notices-wrapper,
.site-main--product .woocommerce-notices-wrapper {
	display: none !important;
}

/* Public shop archive — classic white layout */

.site-main--shop {
	padding: 1.25rem 0 3rem;
	background: #fff;
}

.container--shop {
	max-width: 1180px;
}

.shop-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 2.5rem 3rem;
	align-items: start;
}

/* —— Sidebar —— */

.shop-sidebar {
	position: sticky;
	top: 1.5rem;
	padding: 0;
	background: transparent;
}

/* Domyślne okruszki WC — wyłączone w PHP, ukryte na wypadek wtyczki SEO */
.shop-main .woocommerce-breadcrumb,
.site-main--shop > .container > .woocommerce-breadcrumb {
	display: none !important;
}

.shop-breadcrumbs {
	margin: 0 0 0.85rem;
	color: #9aa0a6;
	font-size: 0.8125rem;
	line-height: 1.5;
}

.shop-breadcrumbs__link {
	color: #9aa0a6;
	text-decoration: none;
}

.shop-breadcrumbs__link:hover {
	color: #1a2b24;
	text-decoration: underline;
}

.shop-breadcrumbs__current {
	color: #6b7280;
}

.shop-breadcrumbs__sep {
	color: #c4c9cc;
}

.shop-sidebar__categories-heading {
	margin: 0 0 0.85rem;
	color: #1a2b24;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.shop-categories {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shop-categories__item + .shop-categories__item {
	margin-top: 0.15rem;
}

.shop-categories__link {
	display: block;
	padding: 0.2rem 0;
	color: #1a2b24;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.55;
	text-decoration: none;
	transition: color 0.14s ease;
}

.shop-categories__link:hover {
	color: #1a9e6e;
}

.shop-categories__link.is-active {
	color: #1a9e6e;
	font-weight: 600;
}

.shop-categories__link.is-promo {
	color: #d62839;
	font-weight: 700;
}

.shop-categories__link.is-promo:hover,
.shop-categories__link.is-promo.is-active {
	color: #b81f2e;
}

.shop-sidebar__empty {
	margin: 0;
	color: #9aa0a6;
	font-size: 0.875rem;
}

/* —— Main content —— */

.shop-main {
	min-width: 0;
}

.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 1rem;
	padding-bottom: 0;
	border-bottom: 0;
}

.shop-toolbar .woocommerce-ordering label {
	display: none;
}

.shop-toolbar .woocommerce-result-count,
.shop-toolbar .woocommerce-ordering {
	margin: 0;
	float: none;
}

.shop-toolbar .woocommerce-result-count {
	color: #6b7280;
	font-size: 0.8125rem;
}

.shop-toolbar .woocommerce-ordering select,
.shop-toolbar .woocommerce-ordering select.orderby {
	min-width: 180px;
	padding: 0.4rem 0.65rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	color: #1a2b24;
	font: inherit;
	font-size: 0.8125rem;
	box-shadow: none;
	outline: none;
}

.shop-toolbar .woocommerce-ordering select:focus,
.shop-toolbar .woocommerce-ordering select:focus-visible,
.shop-toolbar .woocommerce-ordering select.orderby:focus,
.shop-toolbar .woocommerce-ordering select.orderby:focus-visible {
	border-color: #1a9e6e;
	outline: none;
	box-shadow: none;
}

.shop-main .woocommerce-info,
.shop-main .woocommerce-message,
.shop-main .woocommerce-error {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 8px;
	list-style: none;
}

.shop-main .woocommerce-info::before,
.shop-main .woocommerce-message::before,
.shop-main .woocommerce-error::before {
	display: none !important;
}

.shop-products-grid.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* WooCommerce float-era clearfix — zajmuje 1. komórkę grida */
.shop-products-grid.products::before,
.shop-products-grid.products::after {
	content: none !important;
	display: none !important;
}

.shop-products-grid.products li.product {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

.shop-product-card.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

.product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
	border-color: #d8e8e0;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f7f7f7;
}

.product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.product-card:hover .product-card__image {
	transform: scale(1.02);
}

.product-card__badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 1;
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
	background: #1a9e6e;
	color: #fff;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.9rem 0.95rem 1rem;
}

.product-card__category {
	margin: 0;
	color: #1a9e6e;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.product-card__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
}

.product-card__title a {
	color: #1a2b24;
	text-decoration: none;
}

.product-card__title a:hover {
	color: #1a9e6e;
}

.product-card__price {
	color: #1a2b24;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.4;
}

.product-card__price .price {
	margin: 0;
	color: inherit;
	font-size: inherit;
}

.product-card__price .subscription-details {
	display: block;
	margin-top: 0.15rem;
	color: #6b7280;
	font-size: 0.72rem;
	font-weight: 500;
}

.product-card__cta {
	margin-top: auto;
	padding-top: 0.35rem;
}

.product-card__cta .button,
.product-card__cta a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 0.58rem 0.85rem;
	border: 0;
	border-radius: 8px;
	background: #1a9e6e;
	color: #fff !important;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.product-card__cta .button:hover,
.product-card__cta a.button:hover {
	background: #12774f;
	color: #fff !important;
}

/* WooCommerce AJAX injects this link — hidden because shop toast handles feedback. */
.product-card__cta .added_to_cart,
.shop-main .added_to_cart {
	display: none !important;
}

.shop-main .woocommerce-pagination {
	margin-top: 1.5rem;
}

.shop-main .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.shop-main .woocommerce-pagination ul li {
	border: 0;
}

.shop-main .woocommerce-pagination ul li a,
.shop-main .woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	color: #4a5568;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.shop-main .woocommerce-pagination ul li a:hover,
.shop-main .woocommerce-pagination ul li span.current {
	border-color: #1a9e6e;
	background: #1a9e6e;
	color: #fff;
}

.shop-main .woocommerce-info {
	border: 1px solid #c8e3f5;
	background: #f0f8ff;
	color: #1a4f7a;
}

.shop-main .woocommerce-error {
	background: #fdecea;
	color: #b31412;
}

.shop-main .woocommerce-message {
	background: #edf8f3;
	color: #12774f;
}

@media (max-width: 1024px) {
	.shop-products-grid.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.site-main--shop {
		padding: 1.25rem 0 2rem;
	}

	.shop-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.shop-sidebar {
		position: static;
		padding-bottom: 0.75rem;
		border-bottom: 1px solid #ececec;
	}

	.shop-sidebar__categories-heading {
		margin-bottom: 0.65rem;
	}

	.shop-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.shop-toolbar .woocommerce-ordering,
	.shop-toolbar .woocommerce-ordering select {
		width: 100%;
	}
}

@media (max-width: 520px) {
	.shop-products-grid.products {
		grid-template-columns: 1fr;
	}
}
