/* WooCommerce presentation layer. Marketplace logic remains in the plugin. */

body.worthiom-site.woocommerce,
body.worthiom-site.woocommerce-page {
	background: var(--worthiom-surface-soft);
}

body.worthiom-site .woocommerce .woocommerce-breadcrumb {
	margin-bottom: 26px;
	color: var(--worthiom-muted);
	font-size: 0.86rem;
}

body.worthiom-site .woocommerce .woocommerce-breadcrumb a {
	color: var(--worthiom-copy);
}

body.worthiom-site .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

body.worthiom-site .woocommerce ul.products::before,
body.worthiom-site .woocommerce ul.products::after {
	display: none;
}

body.worthiom-site .woocommerce ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--worthiom-line);
	border-radius: var(--worthiom-radius-md);
	background: #fff;
	box-shadow: var(--worthiom-shadow-sm);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

body.worthiom-site .woocommerce ul.products li.product:hover {
	box-shadow: var(--worthiom-shadow-md);
	transform: translateY(-4px);
}

body.worthiom-site .woocommerce ul.products li.product a img {
	aspect-ratio: 4 / 3;
	margin-bottom: 16px;
	border-radius: 12px;
	object-fit: cover;
}

body.worthiom-site .woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0;
	font-size: 1.05rem;
	line-height: 1.3;
}

body.worthiom-site .woocommerce ul.products li.product .price {
	color: var(--worthiom-green-700);
	font-size: 1rem;
	font-weight: 800;
}

body.worthiom-site .woocommerce ul.products li.product .button {
	width: 100%;
	margin-top: 12px;
	text-align: center;
}

body.worthiom-site .woocommerce-message,
body.worthiom-site .woocommerce-info,
body.worthiom-site .woocommerce-error {
	border: 1px solid var(--worthiom-line);
	border-top: 4px solid var(--worthiom-green-600);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--worthiom-shadow-sm);
}

body.worthiom-site .woocommerce div.product {
	padding: clamp(18px, 3vw, 42px);
	border: 1px solid var(--worthiom-line);
	border-radius: var(--worthiom-radius-lg);
	background: #fff;
	box-shadow: var(--worthiom-shadow-sm);
}

body.worthiom-site .woocommerce div.product div.images img {
	border-radius: 16px;
}

body.worthiom-site .woocommerce div.product p.price,
body.worthiom-site .woocommerce div.product span.price {
	color: var(--worthiom-green-700);
	font-weight: 800;
}

body.worthiom-site .woocommerce table.shop_table {
	border: 1px solid var(--worthiom-line);
	border-radius: 14px;
	background: #fff;
	border-collapse: separate;
}

body.worthiom-site .woocommerce-checkout-review-order,
body.worthiom-site .woocommerce form.checkout_coupon,
body.worthiom-site .woocommerce form.login,
body.worthiom-site .woocommerce form.register {
	border: 1px solid var(--worthiom-line);
	border-radius: var(--worthiom-radius-md);
	background: #fff;
	box-shadow: var(--worthiom-shadow-sm);
}

@media (max-width: 1100px) {
	body.worthiom-site .woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.worthiom-site .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	body.worthiom-site .woocommerce ul.products li.product {
		padding: 10px;
	}

	body.worthiom-site .woocommerce div.product {
		padding: 16px;
		border-radius: 18px;
	}
}

@media (max-width: 420px) {
	body.worthiom-site .woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}
