/**
 * WooCommerce cart — product cell, quantity stepper, mobile layout.
 */

/* Product column: thumbnail + name side by side */
body.woocommerce-cart .petcare-cart-product {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	text-align: left;
}

body.woocommerce-cart .petcare-cart-product__thumb {
	flex: 0 0 auto;
}

body.woocommerce-cart .petcare-cart-product__thumb img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid #e8ddcf;
}

body.woocommerce-cart .petcare-cart-product__details {
	min-width: 0;
}

body.woocommerce-cart .petcare-cart-product__title,
body.woocommerce-cart .petcare-cart-product__details > a:first-child {
	display: inline-block;
	font-weight: 700;
	color: #2c2416;
	text-decoration: none;
	line-height: 1.35;
}

body.woocommerce-cart .petcare-cart-product__title:hover,
body.woocommerce-cart .petcare-cart-product__details > a:first-child:hover {
	color: #5a3d28;
}

/* Quantity stepper (+ / -) */
body.woocommerce-cart .petcare-cart-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #d9c8b4;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

body.woocommerce-cart .petcare-cart-qty input.qty {
	width: 3rem;
	min-width: 3rem;
	margin: 0;
	padding: 0.45rem 0.25rem;
	border: none;
	border-left: 1px solid #e8ddcf;
	border-right: 1px solid #e8ddcf;
	border-radius: 0;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
}

body.woocommerce-cart .petcare-cart-qty input.qty::-webkit-outer-spin-button,
body.woocommerce-cart .petcare-cart-qty input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.woocommerce-cart .petcare-cart-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	min-width: 2.25rem;
	padding: 0;
	border: none;
	background: #f7efe4;
	color: #5a3d28;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

body.woocommerce-cart .petcare-cart-qty__btn:hover {
	background: #eadfce;
	color: #2c2416;
}

body.woocommerce-cart .petcare-cart-qty__btn:focus-visible {
	outline: 2px solid #5a3d28;
	outline-offset: -2px;
}

body.woocommerce-cart td.product-quantity {
	text-align: center;
}

/* Tight hero + content on cart (works with woocommerce.php or page.php fallback) */
body.woocommerce-cart .petcare-page-hero {
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}

body.woocommerce-cart .petcare-page-hero__subtitle {
	display: none;
}

body.woocommerce-cart .petcare-page-main .container {
	padding-top: 1rem !important;
	padding-bottom: 2.5rem !important;
}

body.woocommerce-cart .page-shop--panvatha--cart .woocommerce-petcare-content,
body.woocommerce-cart .woocommerce-petcare-content {
	padding-top: 1rem;
	padding-bottom: 2.5rem;
}

@media (max-width: 767.98px) {
	body.woocommerce-cart table.shop_table_responsive thead {
		display: none;
	}

	body.woocommerce-cart table.shop_table_responsive tbody tr.woocommerce-cart-form__cart-item,
	body.woocommerce-cart table.shop_table_responsive tbody tr.cart_item {
		position: relative !important;
		display: block !important;
		padding: 2.85rem 0.85rem 0.85rem !important;
		margin-bottom: 0.85rem;
		border: 1px solid #e8ddcf !important;
		border-radius: 14px;
		background: #fffdf9;
	}

	body.woocommerce-cart table.shop_table_responsive tbody tr.woocommerce-cart-form__cart-item td,
	body.woocommerce-cart table.shop_table_responsive tbody tr.cart_item td {
		display: flex !important;
		justify-content: space-between;
		align-items: center;
		gap: 0.75rem;
		padding: 0.45rem 0 !important;
		border: none !important;
		text-align: right !important;
		background: transparent !important;
	}

	body.woocommerce-cart table.shop_table_responsive tbody tr.woocommerce-cart-form__cart-item td::before,
	body.woocommerce-cart table.shop_table_responsive tbody tr.cart_item td::before {
		font-weight: 700;
		color: #5a3d28;
		text-align: left;
		float: none !important;
	}

	body.woocommerce-cart table.shop_table_responsive tbody tr.woocommerce-cart-form__cart-item td.product-remove,
	body.woocommerce-cart table.shop_table_responsive tbody tr.cart_item td.product-remove {
		position: absolute !important;
		top: 0.55rem !important;
		right: 0.55rem !important;
		left: auto !important;
		width: auto !important;
		padding: 0 !important;
		justify-content: flex-end !important;
		border: none !important;
		text-align: right !important;
	}

	body.woocommerce-cart table.shop_table_responsive tbody tr.woocommerce-cart-form__cart-item td.product-remove::before,
	body.woocommerce-cart table.shop_table_responsive tbody tr.cart_item td.product-remove::before {
		display: none !important;
		content: none !important;
	}

	body.woocommerce-cart table.shop_table_responsive tbody tr.woocommerce-cart-form__cart-item td.product-remove a.remove,
	body.woocommerce-cart table.shop_table_responsive tbody tr.cart_item td.product-remove a.remove {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 2rem;
		height: 2rem;
		border-radius: 50%;
		background: rgba(192, 57, 43, 0.1);
		color: #c0392b !important;
		font-size: 1.35rem;
		font-weight: 700;
		line-height: 1;
		text-decoration: none;
	}

	body.woocommerce-cart table.shop_table_responsive tbody tr.woocommerce-cart-form__cart-item td.product-name,
	body.woocommerce-cart table.shop_table_responsive tbody tr.cart_item td.product-name {
		display: block !important;
		padding-bottom: 0.65rem !important;
		text-align: left !important;
	}

	body.woocommerce-cart table.shop_table_responsive tbody tr.woocommerce-cart-form__cart-item td.product-name::before,
	body.woocommerce-cart table.shop_table_responsive tbody tr.cart_item td.product-name::before {
		display: none !important;
		content: none !important;
	}

	body.woocommerce-cart .petcare-cart-product {
		width: 100%;
	}

	body.woocommerce-cart td.product-quantity {
		justify-content: space-between;
	}
}
