/*
Theme Name: MyKahawa
Theme URI: https://shop.mykahawa.org
Description: MyKahawa shop theme (child of Twenty Twenty-Five). Brand tokens live in theme.json; see .claude/skills/mykahawa-brand/SKILL.md.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: mykahawa
*/

/* Route-line divider: the farm-to-cup motif from the style guide. */
.mk-route {
	height: 41px;
	background: url(assets/images/route-line.png) center / contain no-repeat;
	border: 0;
	margin-block: var(--wp--preset--spacing--40);
}

.mk-eyebrow {
	font-family: var(--wp--preset--font-family--bebas);
	font-size: 1.25rem;
	font-weight: 400;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--green);
}

.mk-hero {
	background:
		linear-gradient(rgba(59, 42, 32, .72), rgba(59, 42, 32, .72)),
		url(assets/images/beans.png) center / cover;
}
.mk-hero .mk-eyebrow,
.mk-farmers .mk-eyebrow { color: #cfe3c3; }

/* Pre-launch notice above the header. */
.mk-notice p { margin: 0; }
.mk-notice a { color: inherit; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.mk-notice a:hover { text-decoration-thickness: 2px; }

/* Product attribute pills: one line each for Origin / Region / Roast / Certification. */
.mk-badges {
	display: flex;
	flex-direction: column;
	align-items: center; /* cards are centred; left-aligned on the product page below */
	gap: .4rem;
	margin: .5rem 0 .75rem;
	padding: 0;
	list-style: none;
}
.single-product .mk-badges { align-items: flex-start; }
.mk-badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	max-width: 100%;
	font-family: var(--wp--preset--font-family--helvetica);
	font-size: .7rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-align: left;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--brown);
	border-radius: 1rem; /* stays pill-shaped when a long county list wraps */
	padding: .3rem .75rem .3rem .55rem;
}
.mk-badge__icon { flex: none; color: var(--wp--preset--color--green); }
.mk-badge--cert {
	background: transparent;
	color: var(--wp--preset--color--green-dark);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--green);
}

/* Prices: Bebas Neue display face, large enough to scan in the grid. */
.wc-block-product .wc-block-components-product-price,
.wp-block-woocommerce-product-template .wc-block-components-product-price,
.single-product .wp-block-woocommerce-product-price {
	font-family: var(--wp--preset--font-family--bebas);
	font-size: 1.75rem !important; /* beats the template's has-small-font-size utility */
	font-weight: 400;
	letter-spacing: .03em;
	line-height: 1.1;
	color: var(--wp--preset--color--green-dark);
}
.single-product .wp-block-woocommerce-product-price { font-size: 2.25rem !important; }
/* Pack weight under the price ("250 g bag"). */
.mk-weight {
	margin: -.75rem 0 1rem; /* sit right under the price block's 1rem bottom margin */
	font-family: var(--wp--preset--font-family--helvetica);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-align: center;
	color: var(--wp--preset--color--brown);
}
.single-product .mk-weight { margin-top: .25rem; text-align: left; font-size: .85rem; }
.wc-block-components-product-price del { font-size: .7em; color: var(--wp--preset--color--slate); }

/* Product cards */
.wc-block-product-template .wc-block-product,
.wp-block-woocommerce-product-template > li {
	background: var(--wp--preset--color--base);
	border: 1px solid #E6E0D8;
	border-radius: 8px;
	padding: var(--wp--preset--spacing--30);
}
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

/* Shop filters (left column; a "Filter products" button + overlay on mobile). */
.mk-shop__filters .wc-block-product-filters {
	--wc-product-filter-checkbox-list-option-element-border: var(--wp--preset--color--brown);
	--wc-product-filter-checkbox-list-option-element-selected: var(--wp--preset--color--green);
	--wc-product-filter-removable-chips-border: var(--wp--preset--color--green);
	--wc-product-filter-removable-chips-text: var(--wp--preset--color--brown);
}
.mk-shop__filters .wp-block-woocommerce-product-filter-active,
.mk-shop__filters .wp-block-woocommerce-product-filter-status,
.mk-shop__filters .wp-block-woocommerce-product-filter-attribute,
.mk-shop__filters .wp-block-woocommerce-product-filter-price {
	border-top: 1px solid #E6E0D8;
	padding-top: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
}
.mk-shop__filters h3.wp-block-heading {
	font-family: var(--wp--preset--font-family--helvetica);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brown);
	margin: 0 0 .75rem;
}
.mk-shop__filters .wc-block-product-filter-checkbox-list__label { font-size: .9rem; color: var(--wp--preset--color--brown-dark); }
.mk-shop__filters .wc-block-product-filter-checkbox-list__count { color: var(--wp--preset--color--slate); }
.mk-shop__filters .wc-block-product-filter-checkbox-list__show-more-button { color: var(--wp--preset--color--green); }
.mk-shop__products > .wp-block-group { margin-bottom: var(--wp--preset--spacing--40); }

/* Delivery zones table */
.mk-zones table { border-collapse: collapse; width: 100%; }
.mk-zones th, .mk-zones td { border-bottom: 1px solid #E6E0D8; padding: .6rem .5rem; text-align: left; vertical-align: top; }
.mk-zones td:last-child, .mk-zones th:last-child { white-space: nowrap; text-align: right; font-family: var(--wp--preset--font-family--helvetica); font-weight: 700; }

.mk-step-number {
	display: inline-grid; place-items: center;
	width: 2.25rem; height: 2.25rem; border-radius: 50%;
	background: var(--wp--preset--color--green); color: #fff;
	font-family: var(--wp--preset--font-family--bebas); font-size: 1.3rem; line-height: 1;
}
