/**
 * Theme Name: MeshMarket 3D
 * Theme URI: https://meshmarket.example/
 * Author: MeshMarket Studio
 * Author URI: https://meshmarket.example/
 * Description: A premium, minimalist, fast WordPress theme purpose-built for selling downloadable 3D-printable models with WooCommerce. Pairs clean editorial typography, electric-blue accents, and a distinctive maker-brand visual identity with native WooCommerce virtual/downloadable product support, secure digital delivery, license variations, and a lightweight bundled wishlist. No page builders, no heavy JS frameworks — just clean, accessible, cache-friendly PHP templates.
 * Version: 1.3.4
 * Requires at least: 6.4
 * Tested up to: 6.8
 * Requires PHP: 8.1
 * WC requires at least: 8.6
 * WC tested up to: 11.2
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: meshmarket
 * Tags: e-commerce, full-site-editing-disabled, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, three-columns, four-columns, rtl-language-support, block-styles, wide-blocks
 *
 * MeshMarket 3D is built for stores selling downloadable 3D-printable models.
 * It pairs native WooCommerce virtual/downloadable products with a custom
 * MeshMarket 3D Suite plugin (bundled) that adds product specification meta,
 * license meta, a lightweight cookie + user_meta wishlist, format badges
 * (STL/3MF/OBJ), and a sample-product importer.
 *
 * This file holds the theme header (required by WordPress) and a minimal
 * normalize + base reset. The full design system lives in
 * /assets/css/main.css and /assets/css/woocommerce.css, which are enqueued
 * via inc/asset-loader.php. Keeping the heavy CSS out of style.css lets
 * caching plugins minify and version them independently.
 */

/* -------------------------------------------------------------------------
 * Base reset & safe defaults. Full design system is in assets/css/main.css.
 * ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

ul, ol { margin: 0; padding: 0; }

:root {
    /* Design tokens — duplicated in assets/css/main.css as the source of truth. */
    --mm-bg: #fafafa;
    --mm-surface: #ffffff;
    --mm-ink: #1a1a1a;
    --mm-ink-2: #4a4a4a;
    --mm-ink-3: #8a8a8a;
    --mm-line: #e6e6e6;
    --mm-accent: #0066ff;
    --mm-accent-ink: #ffffff;
    --mm-warn: #ff6b1a;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, 0.18);
    --space: clamp(1rem, 0.6rem + 1.6vw, 2rem);
    --max: 1280px;
}

/* Screen-reader-text utility (WordPress convention) */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip-to-content link for keyboard users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
}
.skip-link:focus { top: 0; }
