/**
 * Field Kit — WooCommerce block styling (loaded only when WooCommerce is active).
 */

/* Product cards */
.wc-block-product-template .wc-block-product,
.wp-block-woocommerce-product-template > li {
	position: relative;
	text-align: left;
}
.wc-block-components-product-image,
.wp-block-woocommerce-product-image { overflow: hidden; background: var(--wp--preset--color--surface); margin-bottom: .75rem !important; }
.wc-block-components-product-image img { aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--fk-ease, ease); }
.wc-block-product:hover .wc-block-components-product-image img,
.wp-block-woocommerce-product-template > li:hover .wc-block-components-product-image img { transform: scale(1.04); }

.wc-block-product .wp-block-post-title,
.wp-block-woocommerce-product-template .wp-block-post-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--large) !important;
	line-height: 1.05;
	margin-bottom: .25rem;
}
.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
}
.wc-block-components-product-price del { opacity: .55; }
.wc-block-components-product-price ins { text-decoration: none; color: var(--wp--preset--color--primary-deep); }

.wc-block-components-product-sale-badge,
.wc-block-components-product-sale-badge--align-right {
	border-radius: 0 !important;
	border: 0 !important;
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--on-primary) !important;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px !important;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.wc-block-components-product-button .wp-block-button__link,
.wp-block-woocommerce-product-button .wp-element-button,
.wc-block-components-button:not(.is-link) {
	border-radius: 0 !important;
	font-family: var(--wp--preset--font-family--mono);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: var(--wp--preset--font-size--x-small);
	min-height: 48px;
}
.wc-block-components-button:not(.is-link) {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}
.wc-block-components-button:not(.is-link):hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
.wc-block-components-button.outlined,
.wc-block-mini-cart__footer-cart.wc-block-components-button {
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
	border: 2px solid var(--wp--preset--color--contrast) !important;
	box-shadow: none !important;
}

.wc-block-components-product-rating__stars,
.wc-block-components-product-rating .wc-block-components-product-rating__stars span::before { color: var(--wp--preset--color--primary); }

.wc-block-catalog-sorting select,
.woocommerce-ordering select { border-radius: 0; }
.woocommerce-result-count,
.wc-block-product-results-count,
.wc-block-breadcrumbs,
.woocommerce-breadcrumb {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* Single product */
.single-product .wp-block-woocommerce-product-image-gallery img { background: var(--wp--preset--color--surface); }
.wp-block-add-to-cart-form .quantity .qty,
.wc-block-components-quantity-selector { border-radius: 0 !important; }
.wp-block-add-to-cart-form .single_add_to_cart_button { border-radius: 0; }
.wp-block-woocommerce-product-details .wc-tabs li a,
.woocommerce-tabs .tabs li a {
	font-family: var(--wp--preset--font-family--mono);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 12px;
}

/* Cart & checkout blocks */
.wc-block-cart, .wc-block-checkout { font-size: var(--wp--preset--font-size--small); }
.wc-block-components-totals-wrapper,
.wc-block-components-panel,
.wc-block-cart-items td,
.wc-block-cart-items th { border-color: var(--wp--preset--color--hairline) !important; }
.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control__input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea { border-radius: 0 !important; }
.wc-block-components-checkout-step__title,
.wc-block-cart__totals-title {
	font-family: var(--wp--preset--font-family--display) !important;
	text-transform: uppercase;
	font-weight: 800 !important;
	letter-spacing: .02em !important;
}

/* ---------- Mini-cart button ---------- */
.wc-block-mini-cart__button { padding: .4rem; }
.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--on-primary) !important;
	border-radius: 0 !important;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
}
.wc-block-mini-cart__amount { font-family: var(--wp--preset--font-family--mono); font-size: 12px; }

/* ---------- Mini-cart drawer: "Your pack" ---------- */
.wc-block-mini-cart__drawer .components-modal__content,
.wc-block-components-drawer {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
.wc-block-components-drawer__screen-overlay { background-color: rgba(21, 23, 20, .45); }

.wc-block-mini-cart__title,
.wp-block-woocommerce-mini-cart-title-block {
	font-family: var(--wp--preset--font-family--display) !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--x-large) !important;
	letter-spacing: .01em;
	line-height: 1 !important;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
	padding-bottom: 1rem !important;
	mask-image: none !important;
}
.wc-block-mini-cart__title .wc-block-mini-cart__title-items-counter-block,
.wp-block-woocommerce-mini-cart-title-items-counter-block {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: .14em;
	color: var(--wp--preset--color--primary-deep);
	vertical-align: middle;
}

/* Free-shipping progress (injected by field-kit.js). */
.fk-ship { margin: 1rem 16px 0; padding: .9rem 1rem; border: var(--fk-hairline, 1px solid rgba(21,23,20,.15)); background: var(--wp--preset--color--surface); }
.fk-ship[hidden] { display: none; }
.fk-ship__text { margin: 0 0 .6rem; font-family: var(--wp--preset--font-family--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.fk-ship__text strong { color: var(--wp--preset--color--primary-deep); font-weight: 500; }
.fk-ship__track { height: 6px; background: var(--wp--preset--color--khaki); overflow: hidden; }
.fk-ship__bar { display: block; height: 100%; width: var(--fk-progress, 0%); background: var(--wp--preset--color--primary); transition: width .6s var(--fk-ease, ease); }
.fk-ship.is-unlocked .fk-ship__bar { background: var(--wp--preset--color--olive); }

/* Line items: one square thumbnail per line, compact rows. */
.wc-block-mini-cart__products-table .wc-block-cart-items__row {
	border-bottom: var(--fk-hairline, 1px solid rgba(21,23,20,.15));
	padding: 1rem 0 !important;
}
.wc-block-mini-cart__products-table .wc-block-cart-item__image { width: 72px; padding-right: 0 !important; }
.wc-block-mini-cart__products-table .wc-block-cart-item__image img {
	width: 72px !important;
	height: 72px !important;
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--wp--preset--color--surface);
	border: var(--fk-hairline, 1px solid rgba(21,23,20,.15));
}
.wc-block-mini-cart__products-table .wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.05;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}
.wc-block-mini-cart__products-table .wc-block-components-product-metadata { font-size: 12px; opacity: .8; }
.wc-block-mini-cart__products-table .wc-block-cart-item__prices,
.wc-block-mini-cart__products-table .wc-block-cart-item__total { font-family: var(--wp--preset--font-family--mono); }

/* Quantity stepper */
.wc-block-components-quantity-selector {
	border-radius: 0 !important;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	width: 112px !important;
	background: transparent !important;
}
.wc-block-components-quantity-selector::after { display: none !important; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	background: transparent;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	color: var(--wp--preset--color--contrast) !important;
	opacity: 1 !important;
	min-width: 32px;
	font-size: 1rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--on-primary) !important;
}
.wc-block-cart-item__remove-link { font-family: var(--wp--preset--font-family--mono); font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; }

.wc-block-mini-cart__footer { border-top: 2px solid var(--wp--preset--color--contrast); }
.wc-block-mini-cart__footer .wc-block-components-totals-item__label { font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.wc-block-mini-cart__footer .wc-block-components-totals-item__value { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: var(--wp--preset--font-size--large); }
.wc-block-mini-cart__footer-actions .wc-block-components-button { border-radius: 0 !important; }
.wc-block-mini-cart__empty-cart-wrapper .wp-block-heading,
.wc-block-mini-cart__empty-cart-wrapper p strong { font-family: var(--wp--preset--font-family--display); text-transform: uppercase; }

/* Notices */
.wc-block-components-notice-banner { border-radius: 0 !important; }
