/*
Theme Name: MakerMorrow
Theme URI: https://makermorrow.com
Description: Child theme of Twenty Twenty-Five for the MakerMorrow digital guides store.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: makermorrow
*/

:root {
	--mm-bg: #f6f7fb;
	--mm-ink: #111827;
	--mm-muted: #4b5563;
	--mm-blue: #375dfb;
	--mm-blue-dark: #2447d6;
	--mm-cyan: #16c4c7;
	--mm-card: #ffffff;
	--mm-line: #e3e6ef;
	--mm-radius: 14px;
}

body { background: var(--mm-bg); color: var(--mm-ink); -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 3px solid var(--mm-cyan);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Header */
.mm-header { background: #fff; border-bottom: 1px solid var(--mm-line); position: sticky; top: 0; z-index: 50; } /* no backdrop-filter: it would trap the mobile menu overlay (position: fixed) inside the header */
.mm-header .wp-block-site-title a { text-decoration: none; font-weight: 800; letter-spacing: -.02em; color: var(--mm-ink); }
.mm-header .wp-block-site-title a::after { content: "."; color: var(--mm-cyan); }
.mm-header .wp-block-navigation a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.mm-header .wp-block-navigation a:hover { color: var(--mm-blue); }

/* Buttons */
.wp-element-button, .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link) {
	background: var(--mm-blue); color: #fff; border: 0; border-radius: 999px; font-weight: 700; padding: .8em 1.5em; text-decoration: none; transition: background .15s;
}
.wp-element-button:hover, .wp-block-button__link:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--mm-blue-dark); color: #fff; }
.is-style-outline > .wp-block-button__link, .mm-btn-ghost { background: transparent; color: var(--mm-blue); border: 2px solid var(--mm-blue); }
.is-style-outline > .wp-block-button__link:hover, .mm-btn-ghost:hover { background: var(--mm-blue); color: #fff; }

/* Layout helpers */
.mm-section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.mm-eyebrow { color: var(--mm-blue); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .5rem; }
.mm-lead { font-size: 1.2rem; color: var(--mm-muted); max-width: 40rem; }
.mm-card { background: var(--mm-card); border: 1px solid var(--mm-line); border-radius: var(--mm-radius); padding: 1.5rem; }

/* Hero */
.mm-hero { background: linear-gradient(180deg, #fff 0%, var(--mm-bg) 100%); }
.mm-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 1rem; }
.mm-hero-art { aspect-ratio: 4 / 3; border-radius: 20px; background: radial-gradient(circle at 20% 20%, rgba(22,196,199,.35), transparent 45%), radial-gradient(circle at 80% 80%, rgba(55,93,251,.4), transparent 50%), #e8ecff; border: 1px solid var(--mm-line); }
.mm-hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; display: block; }

/* Pills */
.mm-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.mm-pills a { display: inline-block; padding: .45rem 1rem; border: 1px solid var(--mm-line); border-radius: 999px; background: #fff; color: var(--mm-ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.mm-pills a[aria-current="true"], .mm-pills a:hover { background: var(--mm-ink); color: #fff; border-color: var(--mm-ink); }

/* Product grid */
.mm-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.mm-product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mm-line); border-radius: var(--mm-radius); overflow: hidden; }
.mm-product__cover { aspect-ratio: 3 / 4; background: linear-gradient(135deg, #e8ecff, #d7f6f7); display: flex; align-items: flex-end; padding: 1rem; position: relative; }
.mm-product__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-product__cover span { position: relative; font-weight: 800; font-size: 1.15rem; line-height: 1.15; letter-spacing: -.02em; }
.mm-product__body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.mm-product__body h3 { font-size: 1.1rem; margin: 0; }
.mm-product__body h3 a { text-decoration: none; color: var(--mm-ink); }
.mm-product__body p { margin: 0; color: var(--mm-muted); font-size: .95rem; }
.mm-product__foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.mm-price { font-weight: 800; font-size: 1.25rem; }
.mm-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: #e6faf9; color: #0b6b6d; }
.mm-tag--draft { background: #fff3cd; color: #7a5b00; }

/* Sort bar */
.mm-shopbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.mm-shopbar select { padding: .5rem .8rem; border-radius: 8px; border: 1px solid var(--mm-line); background: #fff; font: inherit; }
.mm-empty { text-align: center; padding: 3rem 1rem; color: var(--mm-muted); }

/* Bundles compare */
.mm-compare { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.mm-compare ul { padding-left: 1.1rem; margin: .75rem 0; }
.mm-compare .mm-card { display: flex; flex-direction: column; gap: .5rem; }
.mm-save { color: #0b6b6d; font-weight: 700; }

/* Product detail sections */
.woocommerce div.product .mm-details, .woocommerce div.product .mm-notice { clear: both; width: 100%; }
.mm-details { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin-block: 2rem; }
.mm-details h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.mm-details ul { margin: 0; padding-left: 1.1rem; }
.mm-badge-digital { display: inline-block; padding: .25rem .8rem; border-radius: 999px; background: #e8ecff; color: var(--mm-blue-dark); font-weight: 700; font-size: .8rem; }
.mm-notice { border-left: 4px solid var(--mm-cyan); background: #fff; padding: 1rem 1.25rem; border-radius: 8px; }

/* FAQ */
.wp-block-details { background: #fff; border: 1px solid var(--mm-line); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
.wp-block-details summary { font-weight: 700; cursor: pointer; }

/* Contact form */
.mm-form { display: grid; gap: 1rem; max-width: 36rem; }
.mm-form label { font-weight: 700; display: block; margin-bottom: .25rem; }
.mm-form input[type=text], .mm-form input[type=email], .mm-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid #b9bfce; border-radius: 10px; font: inherit; background: #fff; }
.mm-form input, .mm-form textarea { box-sizing: border-box; }
.mm-form .mm-hp { position: absolute; left: -9999px; }
.mm-alert { padding: .9rem 1.1rem; border-radius: 10px; font-weight: 600; }
.mm-alert--ok { background: #e6faf9; color: #0b6b6d; }
.mm-alert--err { background: #fde8e8; color: #9b1c1c; }

/* Footer */
.mm-footer { background: #0f172a; color: #cbd5e1; }
.mm-footer a { color: #fff; text-decoration: none; }
.mm-footer a:hover { text-decoration: underline; }
.mm-footer h2, .mm-footer h3 { color: #fff; font-size: 1rem; }
.mm-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.mm-footer small { color: #94a3b8; }

/* WooCommerce polish */
.woocommerce div.product .product_title { letter-spacing: -.02em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--mm-ink); font-weight: 800; font-size: 1.6rem; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--mm-blue); background: #fff; }
.woocommerce table.shop_table { background: #fff; border-radius: 12px; }

@media (max-width: 600px) {
	.mm-header .wp-block-site-title { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
