/**
 * WooCommerce compatibility styles: Shop, Single Product, Cart,
 * Checkout, My Account, product archive, mini cart, and search.
 * Only enqueued on WooCommerce pages (see inc/enqueue.php).
 *
 * @package CSWithRizwan
 */

/* =========================================================
   SHOP / PRODUCT ARCHIVE GRID
   ========================================================= */
ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	list-style: none !important;
	margin: 0 !important;
}

ul.products li.product {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	transition: all var(--transition-base);
	list-style: none;
}

ul.products li.product:hover {
	border-color: var(--navy);
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -24px rgba(16, 24, 43, 0.25);
}

ul.products li.product img {
	border-radius: 10px;
	margin-bottom: 16px;
}

ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
	margin: 10px 0 6px;
}

ul.products li.product .price {
	font-family: var(--font-mono);
	color: var(--navy);
	font-weight: 600;
}

ul.products li.product .price del {
	color: #9CA5B8;
	opacity: 1;
	font-weight: 400;
	margin-right: 6px;
}

ul.products li.product .price ins {
	text-decoration: none;
}

ul.products li.product .button,
a.added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 14px;
	padding: 12px 20px;
	border-radius: 100px;
	background: var(--navy);
	color: var(--white) !important;
	font-weight: 600;
	font-size: 14px;
	transition: all var(--transition-fast);
	border: none;
}

ul.products li.product .button:hover {
	background: var(--navy-deep);
}

ul.products li.product .onsale {
	background: var(--gold);
	color: var(--navy-deep);
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 12px;
	border-radius: 6px;
	padding: 4px 10px;
	min-height: unset;
	line-height: 1.4;
	top: 16px;
	left: 16px;
}

.woocommerce-result-count,
.woocommerce-ordering {
	font-size: 14px;
	color: var(--ink-soft);
}

.woocommerce-ordering select {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 8px 14px;
}

/* =========================================================
   SINGLE PRODUCT PAGE
   ========================================================= */
.single-product div.product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.single-product .woocommerce-product-gallery {
	border-radius: var(--radius);
	overflow: hidden;
}

.single-product .product_title {
	font-size: 32px;
	margin-bottom: 12px;
}

.single-product .price {
	font-family: var(--font-mono);
	font-size: 24px;
	color: var(--navy);
	margin-bottom: 20px;
}

.single-product .woocommerce-product-details__short-description {
	color: var(--ink-soft);
	margin-bottom: 24px;
}

.single-product form.cart {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 32px;
}

.single-product .quantity input {
	width: 70px;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px;
	text-align: center;
}

.single-product button.single_add_to_cart_button {
	background: var(--navy);
	color: var(--white);
	border: none;
	border-radius: 100px;
	padding: 14px 32px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition-fast);
}

.single-product button.single_add_to_cart_button:hover {
	background: var(--navy-deep);
	transform: translateY(-1px);
}

.woocommerce-tabs ul.tabs {
	display: flex;
	gap: 8px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 24px;
	list-style: none;
}

.woocommerce-tabs ul.tabs li {
	padding: 12px 20px;
	border-radius: 10px 10px 0 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
}

.woocommerce-tabs ul.tabs li.active {
	background: var(--paper-alt);
	color: var(--navy);
}

.related.products {
	margin-top: 64px;
}

.related.products h2 {
	font-size: 26px;
	margin-bottom: 24px;
}

/* =========================================================
   CART PAGE
   ========================================================= */
table.shop_table {
	width: 100%;
	border-collapse: collapse;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

table.shop_table th {
	background: var(--paper-alt);
	text-align: left;
	padding: 16px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ink-soft);
}

table.shop_table td {
	padding: 16px;
	border-top: 1px solid var(--line);
}

.cart-collaterals .cart_totals {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	margin-top: 24px;
}

.cart_totals h2 {
	font-size: 20px;
	margin-bottom: 16px;
}

.wc-proceed-to-checkout .checkout-button {
	display: flex;
	width: 100%;
	justify-content: center;
	background: var(--gold);
	color: var(--navy-deep) !important;
	border-radius: 100px;
	padding: 14px 24px;
	font-weight: 600;
	margin-top: 16px;
}

/* =========================================================
   CHECKOUT PAGE
   ========================================================= */
.woocommerce-checkout form .form-row input,
.woocommerce-checkout form .form-row select,
.woocommerce-checkout form .form-row textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	background: var(--paper);
}

#order_review {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
}

#place_order {
	width: 100%;
	background: var(--navy);
	color: var(--white);
	border: none;
	border-radius: 100px;
	padding: 16px 24px;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}

#place_order:hover {
	background: var(--navy-deep);
}

/* =========================================================
   MY ACCOUNT
   ========================================================= */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--navy);
	color: var(--white);
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px;
}

/* =========================================================
   MINI CART / HEADER CART ICON
   ========================================================= */
.cart-contents-link {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 14px;
	color: var(--ink);
}

.cart-count {
	background: var(--gold);
	color: var(--navy-deep);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.widget_shopping_cart .cart_list li,
.woocommerce-mini-cart-item {
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.woocommerce-mini-cart__buttons .button {
	display: block;
	text-align: center;
	border-radius: 100px;
	padding: 12px;
	margin-top: 8px;
	font-weight: 600;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
	ul.products {
		grid-template-columns: repeat(2, 1fr);
	}

	.single-product div.product {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	ul.products {
		grid-template-columns: 1fr;
	}

	table.shop_table,
	table.shop_table thead {
		display: block;
		overflow-x: auto;
	}
}
