/**
 * EasySite Pro – WooCommerce styles
 */

.easysite-woocommerce {
	padding: 2rem 0 4rem;
}

.easysite-wc-header {
	text-align: center;
	margin-bottom: 2rem;
}

.easysite-woocommerce .products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.easysite-product-card {
	background: var(--easysite-surface, #f9fafb);
	border: 1px solid var(--easysite-border, #e5e7eb);
	border-radius: 12px;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s, transform 0.2s;
}

.easysite-product-card:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.easysite-product-link {
	text-decoration: none;
	color: inherit;
	flex: 1;
}

.easysite-product-image img {
	border-radius: 8px;
	width: 100%;
	margin-bottom: 0.75rem;
}

.easysite-product-title {
	font-size: 1.05rem;
	margin: 0 0 0.5rem;
}

.easysite-product-price {
	display: block;
	font-weight: 700;
	color: var(--easysite-main, #2563eb);
	margin-bottom: 0.75rem;
}

.easysite-product-actions .button,
.easysite-woocommerce .button,
.easysite-woocommerce button[type="submit"] {
	background: var(--easysite-main, #2563eb) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 0.65rem 1.25rem !important;
	font-weight: 600;
}

.easysite-single-product-wrap {
	padding: 2rem 0 4rem;
}

.easysite-single-product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}

.easysite-product-tabs {
	grid-column: 1 / -1;
	margin-top: 2rem;
}

.easysite-woocommerce .woocommerce-tabs ul.tabs {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 0.5rem;
	border-bottom: 1px solid var(--easysite-border, #e5e7eb);
}

.easysite-woocommerce .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.75rem 1rem;
	text-decoration: none;
	font-weight: 600;
}

.easysite-cart-table,
.easysite-checkout-form {
	background: #fff;
	border: 1px solid var(--easysite-border, #e5e7eb);
	border-radius: 12px;
	padding: 1.5rem;
}

.easysite-cart-table th,
.easysite-cart-table td {
	padding: 0.75rem;
	border-bottom: 1px solid var(--easysite-border, #e5e7eb);
}

.easysite-checkout-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

.easysite-cart-collaterals {
	margin-top: 2rem;
}

.easysite-woocommerce .woocommerce-message,
.easysite-woocommerce .woocommerce-info,
.easysite-woocommerce .woocommerce-error {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	list-style: none;
}

.easysite-woocommerce .woocommerce-message {
	background: #ecfdf5;
	border-left: 4px solid #10b981;
}

.easysite-woocommerce .star-rating {
	color: #f59e0b;
}

.onsale {
	background: var(--easysite-accent, #0ea5e9);
	color: #fff;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
}

.easysite-product-image {
	position: relative;
}

@media (max-width: 900px) {
	.easysite-single-product,
	.easysite-checkout-grid {
		grid-template-columns: 1fr;
	}

	.easysite-cart-table thead {
		display: none;
	}
}
