/*
Theme Name: Crazy Master
Theme URI: https://crazy-master.com/
Author: Crazy Master Team
Author URI: https://crazy-master.com/
Description: Upgraded Crazy Master WordPress Theme with full-width responsive layout, strict center alignment, responsive touch-enabled slider, balanced category grid, and AJAX infinite scroll products. Premium, lightweight, highly customizable WordPress theme for technology, learning, innovation, and creative knowledge hubs. Features an advanced automatic responsive full-width layout engine, synchronized Theme Control Panel and WordPress Live Customizer, high-speed Core Web Vitals, built-in Advanced Search Builder with live AJAX search, favorites system, fluid container sizing, and a premium Header & Footer Menu Live Customizer with instant preview, responsive height controllers and per-device menu controls.
Version: 3.5.6 (Product Image Zoom Fix)
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crazy-master
Tags: blog, education, technology, responsive-layout, custom-colors, custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

:root {
  --cm-primary: #DC2626;
  --cm-primary-hover: #b91c1c;
  --cm-accent: #2563EB;
  --cm-bg: #F8FAFC;
  --cm-card-bg: #FFFFFF;
  --cm-text: #0F172A;
  --cm-muted: #64748B;
  --cm-border: #E2E8F0;
  --cm-radius: 14px;
  /* AUTOMATIC FULL-WIDTH SYSTEM: Desktop Maximum Content Width: AUTO (max-width: none by default) */
  --cm-container-max: none;
  --cm-container-min: 320px;
  --cm-container-pad: clamp(12px, 2vw, 30px);
  --cm-section-gap: 48px;
  --cm-header-width: 100%;
  --cm-footer-width: 100%;
  --cm-content-width: 100%;
  --cm-grid-width: 100%;
  --cm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cm-heading-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Prevent horizontal overflow across all screen sizes */
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--cm-font);
  background-color: var(--cm-bg);
  color: var(--cm-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Automatic Full-Width Root Wrappers */
.site-wrapper,
.cm-site-wrapper,
.site-header,
.cm-site-header,
.site-main,
.cm-site-main,
.site-footer,
.cm-site-footer,
.cm-homepage-builder,
.cm-content-grid {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Fluid Automatic Full-Width Container */
.container,
.cm-container {
  width: 100%;
  max-width: var(--cm-container-max, none);
  min-width: var(--cm-container-min, 320px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--cm-container-pad, clamp(12px, 2vw, 30px));
  padding-right: var(--cm-container-pad, clamp(12px, 2vw, 30px));
  box-sizing: border-box;
}

/* Guarantee full-width and centered alignment across all templates */
.cm-site-wrapper, .cm-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cm-container, .cm-container-fluid {
  width: 100%;
  max-width: var(--cm-container-max, none);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
