/* WooCommerce restyle to the velta.sg design language. */

/* ---------- Shared ---------- */

/* Breathing room for Woo block-template mains (they span the wide width) */
body.woocommerce main.wp-block-group,
body.woocommerce-page main.wp-block-group {
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 80px;
	box-sizing: border-box;
}

@media (min-width: 1024px) {
	body.woocommerce main.wp-block-group,
	body.woocommerce-page main.wp-block-group { padding-left: 32px; padding-right: 32px; }
}

@media (min-width: 1280px) {
	body.woocommerce main.wp-block-group,
	body.woocommerce-page main.wp-block-group { padding-left: 48px; padding-right: 48px; }
}

.woocommerce-breadcrumb {
	font-size: 12px;
	color: #5f6663;
}

.woocommerce-breadcrumb a {
	color: #5f6663;
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover { color: #0d1793; }

/* Archive title ("Shop", category names) — SectionHeading look */
.wp-block-query-title,
.woocommerce-products-header__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.4rem, 5vw, 3.75rem);
	font-weight: 300;
	line-height: 1.02;
	letter-spacing: -0.025em;
	color: #111513;
	margin: 24px 0 8px;
}

/* Results count + sorting row */
.woocommerce-result-count {
	font-size: 13px;
	color: #5f6663;
}

.woocommerce-ordering select,
.wc-block-product-filters select,
select.orderby {
	border: 1px solid rgba(22, 24, 23, 0.3);
	background: transparent;
	padding: 10px 14px;
	font-size: 13px;
	font-family: inherit;
	color: #161817;
	border-radius: 0;
}

/* ---------- Product cards (product collection grid) ---------- */

.wc-block-product-template {
	gap: 48px 32px !important;
}

.wc-block-product {
	border-top: 1px solid #aeb3af;
	padding-top: 16px;
	text-align: left;
}

.wc-block-product .wp-block-post-title,
.wc-block-product .wc-block-components-product-price,
.wc-block-product .wc-block-grid__product-price,
.wc-block-product .wp-block-button {
	text-align: left !important;
	justify-content: flex-start;
}

.wc-block-product .wc-block-components-product-image {
	position: relative;
	aspect-ratio: 4 / 4.6;
	overflow: hidden;
	background: #efede7;
	margin: 0 0 20px;
}

.wc-block-product .wc-block-components-product-image a {
	display: block;
	height: 100%;
}

.wc-block-product .wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 32px;
	box-sizing: border-box;
	transition: transform 0.7s;
	mix-blend-mode: multiply; /* white-background photos melt into the cream tile */
}

.wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.035);
}

/* Product name */
.wc-block-product .wp-block-post-title,
.wc-block-product h3 {
	margin: 0;
}

.wc-block-product .wp-block-post-title a,
.wc-block-product h3 a {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: -0.02em;
	color: #161817;
	text-decoration: none;
}

.wc-block-product .wp-block-post-title a:hover { color: #0d1793; }

/* Price */
.wc-block-product .wc-block-components-product-price,
.wc-block-product .price {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: #161817;
}

.wc-block-product .wc-block-components-product-price del,
.wc-block-product .price del {
	color: #8a908c;
	margin-right: 8px;
}

/* Card add-to-cart: quiet outline, square */
.wc-block-product .wp-block-button .wp-block-button__link,
.wc-block-product .add_to_cart_button,
.wc-block-product .wc-block-components-product-button .wp-element-button {
	border: 1px solid #161817;
	background: transparent;
	color: #161817;
	border-radius: 0;
	padding: 10px 16px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
	transition: background-color 0.2s, color 0.2s;
}

.wc-block-product .wp-block-button .wp-block-button__link:hover,
.wc-block-product .add_to_cart_button:hover,
.wc-block-product .wc-block-components-product-button .wp-element-button:hover {
	background: #161817;
	color: #fff;
}

/* ---------- Single product ---------- */

.single-product div.product .product_title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
	margin: 0 0 12px;
}

.single-product div.product p.price,
.single-product div.product span.price {
	font-size: 20px;
	color: #161817;
	margin-bottom: 20px;
}

.single-product div.product .woocommerce-product-details__short-description {
	font-size: 16px;
	line-height: 1.7;
	color: #555b57;
	max-width: 34rem;
}

.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button.alt {
	background: #161817;
	border: 1px solid #161817;
	color: #fff;
	border-radius: 0;
	min-height: 48px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: background-color 0.2s, border-color 0.2s;
}

.single-product .single_add_to_cart_button:hover {
	background: #0d1793;
	border-color: #0d1793;
}

.single-product div.product form.cart .quantity .qty {
	border: 1px solid rgba(22, 24, 23, 0.3);
	border-radius: 0;
	min-height: 48px;
	background: transparent;
	font-family: inherit;
}

/* Gallery */
.single-product .woocommerce-product-gallery {
	background: #efede7;
}

.single-product .woocommerce-product-gallery img {
	mix-blend-mode: multiply;
}

/* Product story: hide the tab chrome, let the description flow full-width
   like a velta.sg product page (reviews are off store-wide for now). */
.single-product .woocommerce-tabs ul.wc-tabs,
.single-product .woocommerce-tabs ul.tabs {
	display: none !important;
}

.single-product .woocommerce-Tabs-panel {
	padding: 0 !important;
	margin: 0;
}

.single-product .woocommerce-Tabs-panel--description > h2:first-child {
	display: none; /* Woo's auto "Description" heading */
}

/* Break designed sections out of the content column to span the viewport */
.single-product .woocommerce-Tabs-panel--description .vs {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.single-product .woocommerce-Tabs-panel--description {
	overflow-x: clip;
}

/* Tabs → quiet underline style */
.single-product .wc-tabs,
.single-product ul.tabs {
	border-bottom: 1px solid rgba(22, 24, 23, 0.15) !important;
}

.single-product .wc-tabs li a,
.single-product ul.tabs li a {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #5f6663;
}

/* Related products heading */
.single-product .related.products > h2,
.single-product .up-sells > h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2rem;
	font-weight: 300;
	letter-spacing: -0.02em;
}

/* ---------- Notices ---------- */

.wc-block-components-notice-banner,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 0;
	font-size: 14px;
}

.woocommerce-message,
.woocommerce-info {
	border-top-color: #1426b5;
}

/* ---------- Cart / checkout / account ---------- */

.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
	border-radius: 0 !important;
	background: #161817;
	color: #fff;
	font-weight: 500;
}

.wc-block-components-button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
	background: #0d1793;
	color: #fff;
}

.wc-block-components-textarea,
.wc-block-components-text-input input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	border-radius: 0;
	border-color: rgba(22, 24, 23, 0.3);
}

/* Account navigation */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid rgba(22, 24, 23, 0.12);
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 14px 0;
	font-size: 14px;
	color: #161817;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover { color: #0d1793; }
