/* ═════════════════════════════════════════════════════════════
   CM COLLECTION - Design System Tokens & Utilities
   ═════════════════════════════════════════════════════════════ */

:root {
    /* Brand Colors */
    --cm-primary: #00a8e8;          /* Cyan from CMCollection Next.js */
    --cm-primary-dark: #007cc3;
    --cm-primary-glow: rgba(0, 168, 232, 0.3);
    
    /* Backgrounds */
    --cm-bg-dark: #0b0e14;          /* Main dark background */
    --cm-bg-surface: #151923;       /* Surface/Cards */
    --cm-bg-surface-light: #1f2533; /* Surface hover */
    
    /* Typography */
    --cm-text-light: #ffffff;
    --cm-text-muted: #9ca3af;       /* Gray-400 */
    --cm-text-dark: #1f2937;
    
    /* Gradients */
    --cm-gradient-primary: linear-gradient(135deg, #00a8e8, #007cc3);
    
    /* Borders & Shadows */
    --cm-border-light: rgba(255, 255, 255, 0.08);
    --cm-shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.4);
    --cm-shadow-glow: 0 0 20px rgba(0, 168, 232, 0.2);
    
    /* Typography settings */
    --cm-font-family: 'Poppins', sans-serif;
    
    /* Radius */
    --cm-radius-sm: 8px;
    --cm-radius-md: 12px;
    --cm-radius-lg: 16px;
    --cm-radius-pill: 9999px;
    
    /* Transitions */
    --cm-transition-fast: 0.2s ease-in-out;
    --cm-transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Global Overrides for WooCommerce/TheGem ─── */
body.woocommerce {
    font-family: var(--cm-font-family);
    background-color: var(--cm-bg-dark) !important;
    color: var(--cm-text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cm-font-family) !important;
    color: var(--cm-text-light);
}

/* ─── Common Utilities ─── */
.cm-glass {
    background: rgba(21, 25, 35, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--cm-border-light);
}

.cm-text-gradient {
    background: var(--cm-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Buttons ─── */
.cm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cm-gradient-primary);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: var(--cm-radius-md);
    font-family: var(--cm-font-family);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--cm-transition-normal);
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.cm-btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: var(--cm-transition-fast);
}

.cm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.4);
    color: #fff !important;
}

.cm-btn-primary:hover::before {
    opacity: 1;
}

.cm-btn-primary:active {
    transform: translateY(0);
}

/* Quote button variant */
.cm-btn-quote {
    background: transparent;
    color: var(--cm-primary) !important;
    border: 2px solid var(--cm-primary);
    box-shadow: none;
}

.cm-btn-quote:hover {
    background: var(--cm-primary);
    color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.3);
}

/* ─── Badges ─── */
.cm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--cm-radius-pill);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.cm-badge-new {
    background: var(--cm-gradient-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 168, 232, 0.3);
}

.cm-badge-sale {
    background: #ef4444; /* red-500 */
    color: #fff;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}
