/**
 * Theme Name: MosesMakes
 * Theme URI: https://mosesmakes.com
 * Author: MosesMakes
 * Author URI: https://mosesmakes.com
 * Description: A custom WordPress theme for MosesMakes - 3D Printing E-Commerce. Features product showcases, custom quote requests, portfolio gallery, and WooCommerce integration.
 * Version: 1.0.3
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: moses-makes
 * Tags: e-commerce, woocommerce, 3d-printing, responsive, seo-optimized
 */

/* ============================================
   1. CSS Variables & Reset
   ============================================ */
:root {
    --mm-primary: #FF6B35;
    --mm-primary-dark: #E55A2B;
    --mm-primary-light: #FF8C5A;
    --mm-secondary: #004E89;
    --mm-secondary-dark: #003A66;
    --mm-secondary-light: #1A6FB5;
    --mm-accent: #00B4D8;
    --mm-accent-dark: #0096B7;
    --mm-success: #2EC4B6;
    --mm-warning: #FFB703;
    --mm-danger: #E71D36;
    --mm-dark: #1A1A2E;
    --mm-dark-light: #2D2D44;
    --mm-gray-900: #1A1A2E;
    --mm-gray-800: #2D2D44;
    --mm-gray-700: #4A4A5A;
    --mm-gray-600: #6B6B7B;
    --mm-gray-500: #8E8E9E;
    --mm-gray-400: #B0B0C0;
    --mm-gray-300: #D1D1D9;
    --mm-gray-200: #E5E5EA;
    --mm-gray-100: #F5F5F7;
    --mm-white: #FFFFFF;
    
    --mm-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mm-font-heading: 'Space Grotesk', var(--mm-font-primary);
    --mm-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --mm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --mm-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --mm-shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    --mm-shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --mm-shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.12);
    
    --mm-radius-sm: 6px;
    --mm-radius: 12px;
    --mm-radius-lg: 16px;
    --mm-radius-xl: 24px;
    --mm-radius-full: 9999px;
    
    --mm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --mm-transition-fast: all 0.15s ease;
    
    --mm-max-width: 1400px;
    --mm-header-height: 80px;
}

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

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

body {
    font-family: var(--mm-font-primary);
    line-height: 1.6;
    color: var(--mm-gray-900);
    background-color: var(--mm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--mm-primary);
    text-decoration: none;
    transition: var(--mm-transition-fast);
}

a:hover {
    color: var(--mm-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mm-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--mm-dark);
}

/* ============================================
   2. Utility Classes
   ============================================ */
.container {
    max-width: var(--mm-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 960px;
}

.container-wide {
    max-width: 1600px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.px-2 { padding-left: 16px; padding-right: 16px; }
.px-3 { padding-left: 24px; padding-right: 24px; }
.px-4 { padding-left: 32px; padding-right: 32px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   3. Buttons
   ============================================ */
.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--mm-font-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--mm-radius);
    cursor: pointer;
    transition: var(--mm-transition);
    white-space: nowrap;
}

.mm-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--mm-shadow);
}

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

.mm-btn-primary {
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-primary-dark));
    color: var(--mm-white);
}

.mm-btn-primary:hover {
    background: linear-gradient(135deg, var(--mm-primary-dark), var(--mm-primary));
    color: var(--mm-white);
}

.mm-btn-secondary {
    background: linear-gradient(135deg, var(--mm-secondary), var(--mm-secondary-dark));
    color: var(--mm-white);
}

.mm-btn-secondary:hover {
    background: linear-gradient(135deg, var(--mm-secondary-dark), var(--mm-secondary));
    color: var(--mm-white);
}

.mm-btn-outline {
    background: transparent;
    color: var(--mm-primary);
    border: 2px solid var(--mm-primary);
}

.mm-btn-outline:hover {
    background: var(--mm-primary);
    color: var(--mm-white);
}

.mm-btn-white {
    background: var(--mm-white);
    color: var(--mm-primary);
}

.mm-btn-white:hover {
    background: var(--mm-gray-100);
}

.mm-btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
    border-radius: var(--mm-radius-lg);
}

.mm-btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* ============================================
   4. Typography
   ============================================ */
.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.015em;
}

.heading-md {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.heading-sm {
    font-size: 1.25rem;
}

.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   5. Cards
   ============================================ */
.mm-card {
    background: var(--mm-white);
    border-radius: var(--mm-radius-lg);
    box-shadow: var(--mm-shadow);
    overflow: hidden;
    transition: var(--mm-transition);
}

.mm-card:hover {
    box-shadow: var(--mm-shadow-md);
    transform: translateY(-4px);
}

.mm-card-body {
    padding: 24px;
}

.mm-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* ============================================
   6. Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease forwards;
}

/* ============================================
   7. Layout & Homepage Sections
   ============================================ */
.mm-main {
    padding-top: var(--mm-header-height);
    min-height: 60vh;
}

body.admin-bar .mm-header {
    top: 32px;
}

body.admin-bar .mm-main {
    padding-top: calc(var(--mm-header-height) + 32px);
}

.mm-hero {
    position: relative;
    overflow: hidden;
    padding: 112px 0 96px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 107, 53, 0.16), transparent 30%),
        radial-gradient(circle at 86% 12%, rgba(0, 180, 216, 0.14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f7f8fb 52%, #fff4ef 100%);
}

.mm-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mm-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(26, 26, 46, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 26, 46, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

.mm-hero .container {
    position: relative;
    z-index: 1;
}

.mm-hero-content {
    max-width: 760px;
    animation: fadeInUp 0.7s ease both;
}

.mm-hero-badge,
.mm-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: var(--mm-radius-full);
    background: rgba(255, 107, 53, 0.1);
    color: var(--mm-primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mm-hero-title {
    max-width: 720px;
    margin-bottom: 20px;
}

.mm-hero-subtitle {
    max-width: 680px;
    margin-bottom: 32px;
    color: var(--mm-gray-700);
}

.mm-hero-actions,
.mm-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.mm-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 36px;
}

.mm-hero-stat {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 107, 53, 0.14);
    border-radius: var(--mm-radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--mm-shadow-sm);
    backdrop-filter: blur(8px);
}

.mm-stat-value {
    font-family: var(--mm-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--mm-primary);
}

.mm-stat-label {
    margin-top: 6px;
    color: var(--mm-gray-700);
    font-size: 0.92rem;
}

.mm-section {
    padding: 88px 0;
}

.mm-section:nth-of-type(even) {
    background: var(--mm-gray-100);
}

.mm-section-header {
    max-width: 820px;
    margin: 0 auto 56px;
}

.mm-section-header .heading-lg {
    margin-bottom: 14px;
}

.mm-section-header p {
    color: var(--mm-gray-700);
}

.mm-feature-card,
.mm-step,
.mm-testimonial-card {
    height: 100%;
    padding: 30px;
    border: 1px solid var(--mm-gray-200);
    border-radius: var(--mm-radius-xl);
    background: var(--mm-white);
    box-shadow: var(--mm-shadow-sm);
    transition: var(--mm-transition);
}

.mm-feature-card:hover,
.mm-step:hover,
.mm-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mm-shadow-md);
    border-color: rgba(255, 107, 53, 0.22);
}

.mm-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: var(--mm-radius-lg);
    background: rgba(255, 107, 53, 0.1);
    color: var(--mm-primary);
}

.mm-feature-card h3,
.mm-step h3 {
    margin-bottom: 10px;
}

.mm-feature-card p,
.mm-step p,
.mm-testimonial-text {
    color: var(--mm-gray-700);
}

.mm-products-section-actions,
.mm-gallery-section-actions {
    margin-bottom: 32px;
}

.mm-steps-grid {
    counter-reset: steps;
}

.mm-step {
    position: relative;
}

.mm-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-primary-dark));
    color: var(--mm-white);
    font-family: var(--mm-font-heading);
    font-weight: 700;
}

.mm-testimonial-stars {
    margin-bottom: 18px;
    color: var(--mm-warning);
    letter-spacing: 0.08em;
}

.mm-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.mm-testimonial-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mm-gray-100);
    color: var(--mm-primary);
}

.mm-testimonial-info h4 {
    margin-bottom: 2px;
    font-size: 1rem;
}

.mm-testimonial-info span {
    color: var(--mm-gray-600);
    font-size: 0.9rem;
}

.mm-cta-section {
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-secondary));
}

.mm-cta-box {
    padding: 56px;
    border-radius: var(--mm-radius-xl);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--mm-shadow-xl);
    color: var(--mm-white);
    text-align: center;
    backdrop-filter: blur(12px);
}

.mm-cta-box h2,
.mm-cta-box p {
    color: var(--mm-white);
}

.mm-cta-box p {
    max-width: 720px;
    margin: 16px auto 28px;
}

.mm-cta-actions {
    justify-content: center;
}

.mm-cta-box .mm-btn-outline {
    color: var(--mm-white);
    border-color: rgba(255, 255, 255, 0.75);
}

.mm-cta-box .mm-btn-outline:hover {
    background: var(--mm-white);
    color: var(--mm-primary);
}

@media screen and (max-width: 782px) {
    body.admin-bar .mm-header {
        top: 46px;
    }

    body.admin-bar .mm-main {
        padding-top: calc(var(--mm-header-height) + 46px);
    }
}

/* ============================================
   7a. Single Product Page
   ============================================ */
.mm-product-page {
    padding-bottom: 48px;
}

.mm-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.mm-product-gallery {
    position: relative;
    border-radius: var(--mm-radius-xl);
    overflow: hidden;
    background: var(--mm-gray-100);
}

.mm-product-gallery img,
.mm-product-placeholder {
    width: 100%;
    display: block;
}

.mm-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    color: var(--mm-gray-400);
    background: var(--mm-gray-100);
    border: 1px dashed var(--mm-gray-300);
    border-radius: var(--mm-radius-xl);
}

.mm-product-placeholder svg {
    max-width: 50%;
    opacity: 0.6;
}

.mm-product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mm-product-title {
    margin-bottom: 0;
}

.mm-product-price {
    font-family: var(--mm-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mm-primary);
}

.mm-product-short-description {
    color: var(--mm-gray-700);
}

.mm-product-short-description p {
    margin-bottom: 0;
}

.mm-product-content {
    color: var(--mm-gray-700);
}

.mm-add-to-cart {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mm-add-to-cart .qty {
    max-width: 72px;
}

.mm-product-specs {
    padding: 24px;
    border: 1px solid var(--mm-gray-200);
    border-radius: var(--mm-radius-lg);
    background: var(--mm-white);
}

.mm-product-specs h3 {
    margin-bottom: 12px;
}

.mm-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mm-specs-list li {
    padding: 6px 0;
    color: var(--mm-gray-700);
}

.mm-specs-list li + li {
    border-top: 1px solid var(--mm-gray-100);
}

@media screen and (max-width: 768px) {
    .mm-product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================
   8. WooCommerce Overrides
   ============================================ */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
}

.woocommerce ul.products li.product {
    text-align: center;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.woocommerce ul.products li.product .woocommerce-loop-card-wrapper {
    background: var(--mm-white);
    border-radius: var(--mm-radius-lg);
    box-shadow: var(--mm-shadow);
    overflow: hidden;
    transition: var(--mm-transition);
}

.woocommerce ul.products li.product .woocommerce-loop-card-wrapper:hover {
    box-shadow: var(--mm-shadow-md);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product img {
    border-radius: var(--mm-radius-lg) var(--mm-radius-lg) 0 0;
}

.woocommerce ul.products li.product .button {
    background: var(--mm-primary);
    color: var(--mm-white);
    border-radius: var(--mm-radius);
    padding: 10px 24px;
    font-weight: 600;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--mm-primary-dark);
}

/* ============================================
   8. WooCommerce Product Page
   ============================================ */
.woocommerce-product-gallery {
    margin-bottom: 32px;
}

.woocommerce-product-gallery__image {
    border-radius: var(--mm-radius-lg);
    overflow: hidden;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
}

.woocommerce-tabs {
    margin-top: 48px;
}

.woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--mm-gray-200);
    padding: 0;
}

.woocommerce-tabs ul.tabs li {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.woocommerce-tabs ul.tabs li.active {
    border-bottom-color: var(--mm-primary);
    color: var(--mm-primary);
    font-weight: 600;
}

/* ============================================
   9. Cart & Checkout
   ============================================ */
.cart_totals table,
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals table th,
.woocommerce-checkout-review-order-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    border-bottom: 2px solid var(--mm-gray-200);
}

.cart_totals table td,
.woocommerce-checkout-review-order-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--mm-gray-200);
}

.woocommerce-cart-form__contents th,
.woocommerce-checkout-review-order-table th {
    background: var(--mm-gray-100);
}

/* ============================================
   10. Custom Quote Request Form
   ============================================ */
.mm-quote-form {
    background: var(--mm-white);
    border-radius: var(--mm-radius-lg);
    box-shadow: var(--mm-shadow);
    padding: 40px;
}

.mm-quote-form .form-group {
    margin-bottom: 24px;
}

.mm-quote-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--mm-dark);
}

.mm-quote-form input,
.mm-quote-form select,
.mm-quote-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--mm-gray-300);
    border-radius: var(--mm-radius);
    font-family: var(--mm-font-primary);
    font-size: 1rem;
    transition: var(--mm-transition-fast);
}

.mm-quote-form input:focus,
.mm-quote-form select:focus,
.mm-quote-form textarea:focus {
    outline: none;
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.mm-quote-form textarea {
    min-height: 120px;
    resize: vertical;
}

.mm-quote-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ============================================
   11. Gallery / Portfolio
   ============================================ */
.mm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mm-gallery-item {
    position: relative;
    border-radius: var(--mm-radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.mm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--mm-transition);
}

.mm-gallery-item:hover img {
    transform: scale(1.05);
}

.mm-gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--mm-transition);
}

.mm-gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.mm-gallery-item .gallery-overlay h4 {
    color: var(--mm-white);
    font-size: 1.125rem;
}

/* Lightbox */
.mm-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 40px;
}

.mm-lightbox.active {
    display: flex;
}

.mm-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--mm-radius);
}

.mm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--mm-white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mm-dark);
}

/* ============================================
   12. Footer
   ============================================ */
.mm-footer {
    background: var(--mm-dark);
    color: var(--mm-gray-400);
    padding: 64px 0 32px;
}

.mm-footer h3 {
    color: var(--mm-white);
    margin-bottom: 20px;
}

.mm-footer a {
    color: var(--mm-gray-400);
}

.mm-footer a:hover {
    color: var(--mm-primary);
}

.mm-footer-links {
    list-style: none;
}

.mm-footer-links li {
    margin-bottom: 10px;
}

.mm-footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--mm-gray-800);
    text-align: center;
}

/* ============================================
   13. Notification / Alert
   ============================================ */
.mm-alert {
    padding: 16px 20px;
    border-radius: var(--mm-radius);
    margin-bottom: 24px;
    font-weight: 500;
}

.mm-alert-success {
    background: rgba(46, 196, 182, 0.1);
    color: var(--mm-success);
    border: 1px solid var(--mm-success);
}

.mm-alert-error {
    background: rgba(231, 29, 54, 0.1);
    color: var(--mm-danger);
    border: 1px solid var(--mm-danger);
}

.mm-alert-info {
    background: rgba(0, 180, 216, 0.1);
    color: var(--mm-accent);
    border: 1px solid var(--mm-accent);
}

/* ============================================
   14. Badge & Tag
   ============================================ */
.mm-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--mm-radius-full);
}

.mm-badge-primary {
    background: rgba(255, 107, 53, 0.1);
    color: var(--mm-primary);
}

.mm-badge-success {
    background: rgba(46, 196, 182, 0.1);
    color: var(--mm-success);
}

.mm-badge-secondary {
    background: rgba(0, 78, 137, 0.1);
    color: var(--mm-secondary);
}

/* ============================================
   15. Price Display
   ============================================ */
.mm-price {
    font-family: var(--mm-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mm-primary);
}

.mm-price-from {
    font-size: 0.875rem;
    color: var(--mm-gray-600);
    font-weight: 400;
}

/* ============================================
   16. Material Selector
   ============================================ */
.mm-material-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mm-material-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid var(--mm-gray-300);
    border-radius: var(--mm-radius);
    cursor: pointer;
    transition: var(--mm-transition-fast);
}

.mm-material-option:hover {
    border-color: var(--mm-primary);
}

.mm-material-option.selected {
    border-color: var(--mm-primary);
    background: rgba(255, 107, 53, 0.05);
}

.mm-material-option input[type="radio"] {
    accent-color: var(--mm-primary);
}

/* ============================================
   17. Print Estimator
   ============================================ */
.mm-print-estimator {
    background: var(--mm-gray-100);
    border-radius: var(--mm-radius-lg);
    padding: 24px;
    margin-top: 24px;
}

.mm-print-estimator h4 {
    margin-bottom: 16px;
}

.mm-estimator-result {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.mm-estimator-card {
    background: var(--mm-white);
    border-radius: var(--mm-radius);
    padding: 16px;
    text-align: center;
}

.mm-estimator-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mm-primary);
}

.mm-estimator-card .label {
    font-size: 0.875rem;
    color: var(--mm-gray-600);
}
