/**
 * WooCommerce UI overrides — light styling for Imported Wear.
 */

/* ── Product cards ─────────────────────────────────────────────── */

.importedwear-product-card {
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.importedwear-product-card:hover {
	border-color: var(--wp--preset--color--contrast) !important;
	transform: translateY(-2px);
}

.importedwear-product-card .wc-block-components-product-image {
	overflow: hidden;
}

.importedwear-product-card .wc-block-components-product-image img {
	transition: transform 0.4s ease;
}

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

.importedwear-product-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.importedwear-product-card .wp-block-post-title a:hover {
	color: #333333;
}

/* ── Shop toolbar ─────────────────────────────────────────────── */

.importedwear-shop-toolbar {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-bottom: 1rem;
}

.importedwear-shop-toolbar .woocommerce-result-count,
.importedwear-shop-toolbar .woocommerce-ordering select {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
}

.importedwear-shop-toolbar .woocommerce-ordering select {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast);
	padding: 0.5rem 1rem;
	border-radius: 0;
}

/* ── Single product ───────────────────────────────────────────── */

.importedwear-single-product .woocommerce-product-gallery {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
}

.importedwear-single-product .wc-block-components-product-price {
	font-family: "Inter", sans-serif;
}

.importedwear-single-product .variations_form table.variations {
	border: none;
}

.importedwear-single-product .variations_form table.variations td,
.importedwear-single-product .variations_form table.variations th {
	border: none;
	padding: 0.5rem 0;
	color: var(--wp--preset--color--contrast);
}

.importedwear-single-product .variations_form label {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* Variation swatches plugin */
.importedwear-single-product .variable-items-wrapper .variable-item {
	border-radius: 0 !important;
	border-color: var(--wp--preset--color--border) !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.importedwear-single-product .variable-items-wrapper .variable-item.selected,
.importedwear-single-product .variable-items-wrapper .variable-item:hover {
	border-color: var(--wp--preset--color--contrast) !important;
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
}

.importedwear-single-product .single_add_to_cart_button,
.importedwear-single-product .wc-block-components-product-button button {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
	border: none !important;
	border-radius: 0 !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	padding: 1rem 2rem !important;
	width: 100%;
	transition: background 0.2s ease;
}

.importedwear-single-product .single_add_to_cart_button:hover,
.importedwear-single-product .wc-block-components-product-button button:hover {
	background: #333333 !important;
}

/* Product tabs */
.importedwear-single-product .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	gap: 2rem;
}

.importedwear-single-product .woocommerce-tabs ul.tabs li a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 1rem 0;
	display: block;
	border-bottom: 2px solid transparent;
}

.importedwear-single-product .woocommerce-tabs ul.tabs li.active a,
.importedwear-single-product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--wp--preset--color--contrast);
	border-bottom-color: var(--wp--preset--color--contrast);
}

/* ── Cart & checkout ──────────────────────────────────────────── */

.importedwear-cart .wc-block-cart,
.importedwear-checkout .wc-block-checkout {
	color: var(--wp--preset--color--contrast);
}

.importedwear-cart .wc-block-cart-item,
.importedwear-checkout .wc-block-components-text-input input,
.importedwear-checkout .wc-block-components-combobox input,
.importedwear-checkout select {
	background: var(--wp--preset--color--base) !important;
	border-color: var(--wp--preset--color--border) !important;
	color: var(--wp--preset--color--contrast) !important;
	border-radius: 0 !important;
}

.importedwear-cart .wc-block-components-totals-item,
.importedwear-checkout .wc-block-components-totals-item {
	border-color: var(--wp--preset--color--border);
}

.importedwear-checkout .wc-block-components-checkout-place-order-button {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
	border-radius: 0 !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
}

.importedwear-checkout .wc-block-components-checkout-place-order-button:hover {
	background: #333333 !important;
}

/* ── Header mini-cart ─────────────────────────────────────────── */

.importedwear-header .wc-block-mini-cart__button {
	color: var(--wp--preset--color--contrast);
}

.importedwear-header .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
}

/* ── Sale badge ─────────────────────────────────────────────────── */

.wc-block-components-product-sale-badge,
.onsale {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
	border-radius: 0 !important;
	font-size: 0.6875rem !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
}

/* ── Buttons (global WooCommerce) ───────────────────────────────── */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button:not(.is-link) {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
	border-radius: 0 !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	font-size: 0.8125rem !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: #333333 !important;
	color: var(--wp--preset--color--base) !important;
}

/* ── Hero background (legacy cover block fallback) ─────────────── */

.importedwear-hero {
	background: #111111 !important;
	position: relative;
	overflow: hidden;
}

.importedwear-hero .wp-block-cover__image-background {
	object-fit: cover;
	object-position: center;
}

.importedwear-hero .wp-block-cover__background {
	background-color: #111111 !important;
	opacity: 0.6 !important;
}

/* ── Mobile ─────────────────────────────────────────────────────── */

@media (max-width: 781px) {
	.importedwear-header .importedwear-nav {
		font-size: 0.75rem;
	}

	.importedwear-product-card {
		margin-bottom: 1rem;
	}

	.importedwear-single-product .wp-block-columns {
		flex-direction: column;
	}
}
