/**
 * MEENA KASHI — pattern refinements (v0.3.0)
 * Small, intentional. Tokens only — no raw hex, no raw px sizes for type.
 */

/* Collection tiles: slow, quiet zoom — luxury moves at 400ms+ */
.mk-tile-img {
	overflow: hidden;
	margin-bottom: 0;
}
.mk-tile-img img {
	display: block;
	width: 100%;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mk-tile:hover .mk-tile-img img {
	transform: scale(1.04);
}

/* Editorial link treatment: hairline underline that draws in */
.mk-tile-link a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	padding-bottom: 3px;
	transition: background-size 0.4s ease;
}
.mk-tile-link a:hover {
	background-size: 100% 1px;
	color: var(--wp--preset--color--gold);
}

/* Hero art panel */
.mk-hero-art img {
	display: block;
	width: 100%;
}

/* Mobile: hero stacks with the artwork below the words, slightly inset */
@media (max-width: 781px) {
	.mk-hero .wp-block-column:first-child {
		padding-bottom: var(--wp--preset--spacing--20) !important;
	}
	.mk-hero-media {
		padding: 0 var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	}
}

/* Respect reduced-motion preferences — always */
@media (prefers-reduced-motion: reduce) {
	.mk-tile-img img,
	.mk-tile-link a {
		transition: none;
	}
}

/* ---------- v0.4.0 additions ---------- */

/* Promise strip: hairline frame */
.mk-promise {
	border-top: 1px solid var(--wp--preset--color--sand);
	border-bottom: 1px solid var(--wp--preset--color--sand);
}

/* Featured products: restyle WooCommerce shortcode output to brand */
.mk-featured ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}
.mk-featured ul.products li.product {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	text-align: center;
	background: var(--wp--preset--color--cream);
	padding-bottom: var(--wp--preset--spacing--30);
}
.mk-featured ul.products li.product img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	margin-bottom: var(--wp--preset--spacing--20);
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mk-featured ul.products li.product:hover img {
	transform: scale(1.03);
}
.mk-featured ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	color: var(--wp--preset--color--brown);
	padding: 0 var(--wp--preset--spacing--20);
}
.mk-featured ul.products li.product .price {
	display: block;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.06em;
	margin-top: var(--wp--preset--spacing--10);
}
.mk-featured ul.products li.product .button {
	margin-top: var(--wp--preset--spacing--20);
}
.mk-featured li.product,
.mk-featured li.product a {
	overflow: hidden;
}
@media (max-width: 781px) {
	.mk-featured ul.products {
		grid-template-columns: 1fr;
	}
}

/* Newsletter form */
.mk-newsletter-form {
	display: flex;
	gap: 0.75rem;
	max-width: 460px;
	margin: 0 auto;
}
.mk-newsletter-form input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--wp--preset--color--sand);
	background: var(--wp--preset--color--ivory);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	padding: 1.05rem 1.2rem;
	border-radius: 0;
}
.mk-newsletter-form input[type="email"]:focus {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 1px;
}
.mk-newsletter-form .wp-element-button {
	cursor: pointer;
	border: none;
}
@media (max-width: 600px) {
	.mk-newsletter-form { flex-direction: column; }
}

/* Footer links: quiet cream, gold hairline hover */
.mk-footer-links { list-style: none; }
.mk-footer-links li { margin-bottom: 0.55rem; }
.mk-footer-links a {
	color: var(--wp--preset--color--cream);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	padding-bottom: 2px;
	transition: background-size 0.4s ease, color 0.3s ease;
}
.mk-footer-links a:hover {
	color: var(--wp--preset--color--gold);
	background-size: 100% 1px;
}
.mk-footer-rule { opacity: 0.35; border: none; height: 1px; }
