/**
 * WooCommerce — cart, checkout, account, shop archive.
 * Intentionally NOT loaded on Core product pages (see assets.php).
 * Selectors also exclude .cc-product-page as a second guard.
 */

body.cp-theme.woocommerce-cart .cp-main--woo,
body.cp-theme.woocommerce-checkout .cp-main--woo,
body.cp-theme.woocommerce-account .cp-main--woo,
body.cp-theme.woocommerce-shop .cp-main--woo {
	padding: 32px 0 64px;
}

body.cp-theme.woocommerce-checkout .woocommerce,
body.cp-theme.woocommerce-cart .woocommerce,
body.cp-theme.woocommerce-account .woocommerce {
	font-family: var(--compilart-font, "Montserrat", system-ui, sans-serif);
}

body.cp-theme.woocommerce-checkout .woocommerce-checkout .form-row input.input-text,
body.cp-theme.woocommerce-checkout .woocommerce-checkout .form-row textarea,
body.cp-theme.woocommerce-checkout .woocommerce-checkout .form-row select,
body.cp-theme.woocommerce-checkout .select2-container .select2-selection--single,
body.cp-theme.woocommerce-cart .input-text,
body.cp-theme.woocommerce-account input.input-text,
body.cp-theme.woocommerce-account .woocommerce-Input {
	height: 44px;
	border: 1px solid #e4e4e7;
	border-radius: 12px;
	padding: 0 14px;
	font-size: 14px;
	background: #fff;
	box-shadow: none;
}

body.cp-theme.woocommerce-checkout .form-row textarea {
	height: auto;
	padding: 12px 14px;
}

body.cp-theme.woocommerce-checkout .form-row input.input-text:focus,
body.cp-theme.woocommerce-checkout .form-row textarea:focus,
body.cp-theme.woocommerce-checkout .form-row select:focus,
body.cp-theme.woocommerce-account input.input-text:focus {
	outline: none;
	border-color: var(--compilart-red, #e41118);
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(228, 17, 24, 0.25);
}

body.cp-theme.woocommerce-checkout #payment,
body.cp-theme.woocommerce-cart .cart_totals,
body.cp-theme.woocommerce-checkout .woocommerce-checkout-review-order,
body.cp-theme.woocommerce-cart .woocommerce-info,
body.cp-theme.woocommerce-checkout .woocommerce-info,
body.cp-theme.woocommerce-account .woocommerce-info,
body.cp-theme.woocommerce-cart .woocommerce-message,
body.cp-theme.woocommerce-checkout .woocommerce-message,
body.cp-theme.woocommerce-account .woocommerce-message {
	border-radius: 1.05rem;
	border: 1px solid var(--compilart-line, #e8e8e8);
	background: #fff;
}

body.cp-theme.woocommerce-cart .woocommerce-info,
body.cp-theme.woocommerce-checkout .woocommerce-info,
body.cp-theme.woocommerce-cart .woocommerce-message,
body.cp-theme.woocommerce-checkout .woocommerce-message {
	border-top: 0;
	padding: 14px 18px;
}

body.cp-theme.woocommerce-checkout #place_order,
body.cp-theme.woocommerce-cart .checkout-button,
body.cp-theme.woocommerce-checkout button.button.alt,
body.cp-theme.woocommerce-cart button.button.alt,
body.cp-theme.woocommerce-account .woocommerce-Button,
body.cp-theme.woocommerce-cart button.button,
body.cp-theme.woocommerce-checkout button.button,
body.cp-theme.woocommerce-account button.button,
body.cp-theme.woocommerce-cart a.button,
body.cp-theme.woocommerce-checkout a.button,
body.cp-theme.woocommerce-account a.button {
	background: var(--compilart-red, #e41118);
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 14px 22px;
	transition: background 0.2s ease;
}

body.cp-theme.woocommerce-checkout #place_order:hover,
body.cp-theme.woocommerce-cart .checkout-button:hover,
body.cp-theme.woocommerce-cart button.button:hover,
body.cp-theme.woocommerce-checkout button.button:hover,
body.cp-theme.woocommerce-account button.button:hover,
body.cp-theme.woocommerce-cart a.button:hover,
body.cp-theme.woocommerce-checkout a.button:hover,
body.cp-theme.woocommerce-account a.button:hover {
	background: var(--compilart-red-dark, #c40e14);
	color: #fff;
}

body.cp-theme.woocommerce-cart table.shop_table,
body.cp-theme.woocommerce-checkout table.shop_table,
body.cp-theme.woocommerce-account table.shop_table {
	border: 1px solid var(--compilart-line, #e8e8e8);
	border-radius: 1.05rem;
	border-collapse: separate;
	overflow: hidden;
}

body.cp-theme.woocommerce-shop ul.products,
body.cp-theme.tax-product_cat ul.products,
body.cp-theme.tax-product_tag ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

body.cp-theme.woocommerce-shop ul.products li.product,
body.cp-theme.tax-product_cat ul.products li.product,
body.cp-theme.tax-product_tag ul.products li.product {
	width: auto;
	float: none;
	margin: 0;
	background: #fff;
	border: 1px solid var(--compilart-line, #e8e8e8);
	border-radius: 1.05rem;
	padding: 16px;
}

@media (max-width: 782px) {
	body.cp-theme.woocommerce-shop ul.products,
	body.cp-theme.tax-product_cat ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	body.cp-theme.woocommerce-shop ul.products,
	body.cp-theme.tax-product_cat ul.products {
		grid-template-columns: 1fr;
	}

	body.cp-theme.woocommerce-checkout .col2-set .col-1,
	body.cp-theme.woocommerce-checkout .col2-set .col-2 {
		float: none;
		width: 100%;
	}
}
