/* ============================================================
   MachineMarts - Main Stylesheet
   Design: Modern industrial marketplace, 2026
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-darker: #1e3a8a;
    --secondary: #f59e0b;
    --accent: #7c3aed;
    --success: #16a34a;
    --danger: #dc2626;
    --wa: #25d366;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --light: #f8fafc;
    --muted: #64748b;
    --border: #e2e8f0;
    --grad-primary: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    --grad-cta: linear-gradient(135deg, #f59e0b, #ea580c);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow: 0 6px 18px rgba(15, 23, 42, .10);
    --shadow-lg: 0 12px 34px rgba(15, 23, 42, .14);
    --radius: 14px;
    --radius-lg: 20px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-2);
    background: #fff;
    padding-bottom: 66px;
}

@media (min-width: 768px) { body { padding-bottom: 0; } }

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }

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

:focus-visible { outline: 3px solid rgba(37, 99, 235, .4); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, h5 { color: var(--dark); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: .55rem 1.1rem; transition: all .2s ease; }
.btn-primary {
    background: var(--grad-primary);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}
.btn-primary:hover, .btn-primary:focus { background: var(--grad-primary); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, .4); }
.btn-outline-primary { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.wa-btn { background: var(--wa); color: #fff; border: none; box-shadow: 0 4px 12px rgba(37, 211, 102, .3); }
.wa-btn:hover { background: #1ebe5b; color: #fff; transform: translateY(-1px); }
.btn-cta { background: var(--grad-cta); color: #fff; border: none; box-shadow: 0 4px 14px rgba(245, 158, 11, .4); }
.btn-cta:hover { color: #fff; transform: translateY(-1px); background: var(--grad-cta); filter: brightness(1.04); }
.btn-icon {
    position: relative; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border); background: #fff; color: var(--dark-2);
    display: inline-flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.btn-icon:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.count-badge, .mm-count-badge {
    position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px;
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
    border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ---------- Top bar ---------- */
.mm-topbar { background: var(--dark); color: #cbd5e1; font-size: 13px; padding: 7px 0; }
.mm-topbar a { color: #e2e8f0; }
.mm-topbar a:hover { color: var(--secondary); }
.mm-topbar-item i { color: var(--secondary); margin-right: 4px; }
.mm-topbar-right .mm-topbar-item i { color: #4ade80; }

/* ---------- Header ---------- */
.mm-header {
    background: #fff; position: sticky; top: 0; z-index: 1030;
    box-shadow: var(--shadow-sm); transition: box-shadow .25s ease;
}
.mm-header.scrolled { box-shadow: var(--shadow); }
.mm-header.scrolled .mm-navbar { min-height: 62px; }
.mm-navbar { min-height: 76px; transition: min-height .3s ease; gap: 1rem; }

.mm-logo { display: flex; align-items: center; gap: 10px; }
.mm-logo-icon {
    width: 64px; height: 64px; border-radius: 18px;
    background: var(--grad-primary); color: #fff; font-size: 30px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
}
.mm-header.scrolled .mm-logo-icon { width: 50px; height: 50px; font-size: 24px; }
.mm-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.mm-logo-text strong { font-size: 26px; color: var(--dark); letter-spacing: -.02em; }
.mm-logo-text strong span { color: var(--primary); }
.mm-logo-text small { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.mm-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.mm-nav > li > a {
    color: var(--dark-2); font-weight: 600; padding: 9px 12px; border-radius: 9px; font-size: 14px;
}
.mm-nav > li > a:hover { color: var(--primary); background: #eff6ff; }
.mm-nav > li.active > a { color: var(--primary); background: #eff6ff; }

.btn-account { border: 1px solid var(--border); background: #fff; color: var(--dark-2); font-weight: 600; border-radius: 10px; }
.btn-account:hover { border-color: var(--primary); color: var(--primary); background: #eff6ff; }

/* ---------- Search overlay ---------- */
.mm-search-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,.97); z-index: 1100;
    display: none; align-items: flex-start; justify-content: center; padding: 8vh 16px 0;
}
.mm-search-overlay.open { display: flex; }
.mm-search-input-wrap { position: relative; }
.mm-search-input-wrap > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 20px; }
.mm-search-input-wrap input { padding: 16px 60px 16px 52px; border-radius: 16px; font-size: 18px; border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; }
.mm-search-input-wrap input::placeholder { color: #94a3b8; }
.mm-close-search { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); filter: invert(1); }
.mm-suggest-list li a { display: flex; gap: 12px; padding: 10px 14px; border-radius: 10px; color: #e2e8f0; align-items: center; }
.mm-suggest-list li a:hover { background: rgba(255,255,255,.1); color: #fff; }
.mm-suggest-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #334155; }
.mm-search-hint { color: #94a3b8 !important; }

/* ---------- Mobile menu ---------- */
.mm-mobile-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 1140; display: none; }
.mm-mobile-menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: #fff;
    z-index: 1150; padding: 1.2rem; transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mm-mobile-menu.open { transform: translateX(0); }
.mm-mobile-overlay.open { display: block; }
.mm-mobile-head { display: flex; align-items: center; justify-content: space-between; }
.mm-mobile-link {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
    color: var(--dark-2); font-weight: 600; border-bottom: 1px solid #f1f5f9;
}
.mm-mobile-link:hover, .mm-mobile-link.active { background: #eff6ff; color: var(--primary); }
.mm-mobile-section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 0 14px; }

/* ---------- Hero ---------- */
.mm-hero { position: relative; height: 620px; max-height: 82vh; overflow: hidden; }
.mm-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease; }
.mm-hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.mm-hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; }
.mm-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,23,42,.85) 5%, rgba(15,23,42,.55) 45%, rgba(15,23,42,.25) 100%); }
.mm-hero-content { position: relative; z-index: 5; height: 100%; display: flex; align-items: center; }
.mm-hero-title { font-size: clamp(1.6rem, 4vw, 3.2rem); color: #fff; line-height: 1.12; font-weight: 800; }
.mm-hero-title em { font-style: normal; background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mm-hero-text { color: #cbd5e1; font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 560px; margin-top: 14px; }
.mm-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.mm-hero-badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #e2e8f0; border-radius: 30px; padding: 5px 14px; font-size: 13px; backdrop-filter: blur(6px); }
.mm-hero-badge i { color: #fbbf24; margin-right: 5px; }
.mm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.mm-hero .btn { padding: 14px 26px; font-size: 16px; }
.mm-hero-nav { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 20px; }
.mm-hero-dots { display: flex; gap: 8px; }
.mm-hero-dot { width: 34px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: all .3s; }
.mm-hero-dot.active { background: var(--secondary); width: 48px; }
.mm-hero-arrow { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---------- Search bar on hero/home ---------- */
.mm-hero-search { position: relative; z-index: 8; margin-top: 26px; max-width: 640px; }
.mm-hero-search .input-group { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.mm-hero-search .form-control { border: none; padding: 16px 20px; font-size: 16px; }
.mm-hero-search .btn { padding: 0 26px; font-size: 16px; }

/* ---------- Sections ---------- */
.mm-section { padding: 64px 0; }
.mm-section-alt { background: #f8fafc; }
.mm-section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.mm-eyebrow { display: inline-block; background: #eff6ff; color: var(--primary); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 30px; margin-bottom: 12px; }
.mm-section-title { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 800; }
.mm-section-sub { color: var(--muted); margin-top: 8px; }

/* ---------- Category cards ---------- */
.mm-cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 14px; text-align: center; color: var(--dark-2);
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.mm-cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--primary); }
.mm-cat-icon { width: 62px; height: 62px; border-radius: 16px; background: #eff6ff; color: var(--primary); font-size: 26px; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.mm-cat-card:hover .mm-cat-icon { background: var(--grad-primary); color: #fff; }
.mm-cat-name { font-weight: 700; font-size: 15px; }
.mm-cat-count { font-size: 12px; color: var(--muted); }

/* ---------- Product cards ---------- */
.mm-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: all .28s cubic-bezier(.4,0,.2,1); }
.mm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.mm-card:hover .product-card-img img { transform: scale(1.06); }
.mm-card-badges { position: absolute; top: 12px; left: 12px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.mm-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; color: #fff; }
.badge-sale { background: var(--grad-cta); }
.badge-new { background: var(--success); }
.product-card-actions { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.product-card-actions .btn-icon { width: 36px; height: 36px; background: rgba(255,255,255,.95); backdrop-filter: blur(4px); opacity: 0; transform: translateX(8px); transition: all .25s; }
.mm-card:hover .product-card-actions .btn-icon { opacity: 1; transform: none; }
.product-card-actions .btn-icon.active { color: var(--danger); }
.product-card-img { display: block; overflow: hidden; aspect-ratio: 4/3; background: #f1f5f9; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card-title { font-weight: 700; color: var(--dark); font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 41px; }
.product-card-title:hover { color: var(--primary); }
.mm-price { display: flex; align-items: baseline; gap: 8px; }
.mm-price-current { font-size: 19px; font-weight: 800; color: var(--dark); }
.mm-price-mrp { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.mm-stars { color: var(--secondary); font-size: 12px; white-space: nowrap; }

/* ---------- Industry cards ---------- */
.mm-industry-card { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: all .25s; color: var(--dark-2); font-weight: 600; }
.mm-industry-card:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.mm-industry-card i { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* ---------- State/city cards ---------- */
.mm-state-card { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; color: var(--dark-2); font-weight: 600; transition: all .25s; }
.mm-state-card:hover { background: var(--grad-primary); color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mm-state-card i { color: var(--secondary); }
.mm-city-card { display: flex; flex-direction: column; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--dark-2); transition: all .25s; }
.mm-city-card:hover { background: var(--grad-primary); color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mm-city-card i { font-size: 22px; margin-bottom: 6px; color: var(--primary); }
.mm-city-card:hover i { color: var(--secondary); }
.mm-city-card small { color: var(--muted); }
.mm-city-card:hover small { color: #cbd5e1; }

/* ---------- Why choose / features ---------- */
.mm-feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: all .3s; height: 100%; }
.mm-feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.mm-feature-icon { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 20px; background: #eff6ff; color: var(--primary); font-size: 28px; display: flex; align-items: center; justify-content: center; }
.mm-feature-card:nth-child(2n) .mm-feature-icon { background: #fef3c7; color: var(--secondary); }
.mm-feature-card:nth-child(3n) .mm-feature-icon { background: #f3e8ff; color: var(--accent); }
.mm-feature-card h3 { font-size: 17px; }
.mm-feature-card p { color: var(--muted); font-size: 14px; margin-bottom: 0; }

/* ---------- How it works ---------- */
.mm-steps { counter-reset: step; }
.mm-step { position: relative; text-align: center; padding: 0 12px; }
.mm-step-num { width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad-primary); color: #fff; font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(37,99,235,.4); position: relative; }
.mm-step-num i { position: absolute; font-size: 16px; bottom: 2px; color: var(--secondary); }
.mm-step h3 { font-size: 18px; }
.mm-step p { color: var(--muted); font-size: 14px; }

/* ---------- Stats ---------- */
.mm-stats { background: var(--grad-primary); border-radius: var(--radius-lg); padding: 40px 24px; color: #fff; }
.mm-stat { text-align: center; }
.mm-stat-num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; }
.mm-stat-label { color: #cbd5e1; font-size: 14px; }

/* ---------- Testimonials ---------- */
.mm-testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.mm-testimonial .mm-stars { font-size: 15px; }
.mm-testimonial p { color: var(--dark-2); }
.mm-testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.mm-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ---------- FAQ ---------- */
.mm-faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: #fff; }
.mm-faq-q { width: 100%; text-align: left; border: none; background: none; padding: 16px 20px; font-weight: 700; color: var(--dark); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mm-faq-q i { color: var(--primary); transition: transform .25s; }
.mm-faq-item.open .mm-faq-q i { transform: rotate(45deg); }
.mm-faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); font-size: 14px; }

/* ---------- Blog cards ---------- */
.mm-blog-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; height: 100%; display: flex; flex-direction: column; transition: all .25s; }
.mm-blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.mm-blog-img { aspect-ratio: 16/9; overflow: hidden; background: #f1f5f9; }
.mm-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mm-blog-card:hover .mm-blog-img img { transform: scale(1.05); }
.mm-blog-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mm-blog-title { font-weight: 700; color: var(--dark); font-size: 16px; }
.mm-blog-meta { font-size: 12px; color: var(--muted); }

/* ---------- CTA banner ---------- */
.mm-cta-banner { background: var(--grad-primary); border-radius: var(--radius-lg); padding: 46px 32px; color: #fff; position: relative; overflow: hidden; }
.mm-cta-banner::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); }
.mm-cta-banner h2 { color: #fff; }
.mm-cta-banner p { color: #cbd5e1; }

/* ---------- Breadcrumbs ---------- */
.mm-breadcrumb { background: #f1f5f9; padding: 11px 0; font-size: 13px; position: relative; z-index: 1; }
.mm-breadcrumb .breadcrumb-item a { color: var(--muted); }
.mm-breadcrumb .breadcrumb-item.active { color: var(--dark); font-weight: 600; }
.mm-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 9px; color: var(--muted); }

/* ---------- Machine detail page ---------- */
.mm-gallery-main { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #f8fafc; aspect-ratio: 4/3; }
.mm-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.mm-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.mm-gallery-thumb { width: 84px; height: 66px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .7; transition: all .2s; }
.mm-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-gallery-thumb.active, .mm-gallery-thumb:hover { border-color: var(--primary); opacity: 1; }

.mm-price-box { background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid #e0e7ff; border-radius: var(--radius); padding: 20px; }
.mm-price-box .mm-price-current { font-size: 30px; }
.mm-spec-table { width: 100%; border-collapse: collapse; }
.mm-spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.mm-spec-table tr:nth-child(odd) td { background: #f8fafc; }
.mm-spec-table td:first-child { font-weight: 600; color: var(--dark); width: 40%; }
.mm-availability-pill { display: inline-flex; align-items: center; gap: 6px; background: #f0fdf4; color: var(--success); font-weight: 700; padding: 6px 14px; border-radius: 30px; font-size: 13px; }
.mm-availability-pill.out { background: #fef2f2; color: var(--danger); }

.mm-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); overflow-x: auto; }
.mm-tab { border: none; background: none; padding: 12px 18px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.mm-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.mm-quick-answer { background: #f8fafc; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 10px; padding: 16px 20px; }
.mm-quick-answer h2 { font-size: 16px; }

/* ---------- Filters sidebar ---------- */
.mm-filter-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.mm-filter-box h3 { font-size: 15px; margin-bottom: 12px; }
.mm-filter-link { display: block; padding: 6px 10px; border-radius: 8px; color: var(--dark-2); font-size: 14px; }
.mm-filter-link:hover { background: #eff6ff; color: var(--primary); }

/* ---------- Compare page ---------- */
.mm-compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mm-compare-table th, .mm-compare-table td { padding: 12px; border: 1px solid var(--border); text-align: center; vertical-align: top; }
.mm-compare-table th { background: #f8fafc; font-weight: 700; }
.mm-compare-table td:first-child { font-weight: 600; background: #f8fafc; text-align: left; width: 160px; }
.mm-compare-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }

/* ---------- Table / zebra ---------- */
.mm-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.mm-table th { background: #f8fafc; text-align: left; padding: 12px 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mm-table td { padding: 12px 16px; border-top: 1px solid var(--border); }

/* ---------- Footer ---------- */
.mm-footer { background: var(--dark); color: #94a3b8; margin-top: 40px; }
.mm-footer-cta { background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(124,58,237,.15)); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; transform: translateY(-36px); box-shadow: var(--shadow-lg); }
.mm-footer-cta h3 { color: #fff; }
.mm-footer-cta p { color: #cbd5e1; }
.mm-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.mm-footer-links { list-style: none; padding: 0; margin: 0; }
.mm-footer-links li { margin-bottom: 8px; }
.mm-footer-links a { color: #94a3b8; font-size: 14px; }
.mm-footer-links a:hover { color: var(--secondary); padding-left: 4px; transition: .2s; }
.mm-socials a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #cbd5e1; }
.mm-socials a:hover { background: var(--primary); color: #fff; }
.mm-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.mm-footer-bottom a { color: #94a3b8; }
.mm-footer-bottom a:hover { color: var(--secondary); }
.mm-footer-accred { color: #64748b; }

/* ---------- Floating buttons ---------- */
.mm-float-btns { position: fixed; right: 16px; bottom: 72px; z-index: 1050; display: flex; flex-direction: column; gap: 12px; }
.mm-float-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; box-shadow: var(--shadow-lg); }
.mm-float-wa { background: var(--wa); }
.mm-float-wa:hover { color: #fff; transform: translateY(-3px); }
.mm-float-call { background: var(--grad-primary); }
.mm-float-call:hover { color: #fff; transform: translateY(-3px); }

/* ---------- Mobile CTA bar ---------- */
.mm-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; border-top: 1px solid var(--border); display: flex; justify-content: space-around; box-shadow: 0 -4px 18px rgba(15,23,42,.08); }
.mm-mcta-item { display: flex; flex-direction: column; align-items: center; padding: 8px 12px 9px; color: var(--dark-2); font-size: 16px; background: none; border: none; width: 25%; }
.mm-mcta-item span { font-size: 11px; font-weight: 600; margin-top: 2px; }
.mm-mcta-item:nth-child(3) { color: var(--primary); }
.mm-float-btns { bottom: 74px; }
@media (min-width: 768px) { .mm-float-btns { bottom: 24px; } }

/* ---------- Cookie consent ---------- */
.mm-cookie { position: fixed; left: 16px; bottom: 16px; right: 16px; z-index: 1090; background: var(--dark); color: #cbd5e1; border-radius: 14px; padding: 16px 18px; display: none; box-shadow: var(--shadow-lg); max-width: 420px; }
.mm-cookie.show { display: block; }
.mm-cookie button { width: 100%; }

/* ---------- Popup form ---------- */
.mm-popup-form { border-radius: var(--radius-lg); overflow: hidden; }
.mm-popup-icon { display: inline-flex; width: 58px; height: 58px; border-radius: 16px; background: var(--grad-primary); color: #fff; font-size: 26px; align-items: center; justify-content: center; margin-bottom: 12px; }

/* ---------- Listings header ---------- */
.mm-listing-head { background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%); padding: 36px 0 30px; }
.mm-page-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; }
.mm-page-sub { color: var(--muted); max-width: 720px; }
.mm-sort-select { max-width: 200px; }

/* ---------- Auth / account ---------- */
.mm-auth-card { max-width: 460px; margin: 40px auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.mm-auth-tabs { display: flex; border-bottom: 2px solid var(--border); }
.mm-auth-tab { flex: 1; text-align: center; padding: 14px; font-weight: 700; color: var(--muted); border: none; background: none; }
.mm-auth-tab.active { color: var(--primary); border-bottom: 3px solid var(--primary); margin-bottom: -2px; }

.mm-account-nav { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.mm-account-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; color: var(--dark-2); font-weight: 600; font-size: 14px; }
.mm-account-nav a:hover, .mm-account-nav a.active { background: #eff6ff; color: var(--primary); }
.mm-account-nav a i { width: 22px; text-align: center; }

/* ---------- Blog ---------- */
.mm-post-content { line-height: 1.85; font-size: 16px; color: #334155; }
.mm-post-content h2 { margin-top: 28px; font-size: 24px; }
.mm-post-content h3 { margin-top: 22px; font-size: 19px; }
.mm-post-content img { border-radius: var(--radius); }
.mm-post-content ul, .mm-post-content ol { padding-left: 22px; }

/* ---------- 404 ---------- */
.mm-404 { text-align: center; padding: 90px 20px; }
.mm-404 h1 { font-size: clamp(4rem, 12vw, 8rem); background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }

/* ---------- Animations ---------- */
.mm-animate, .mm-animate.in { opacity: 1; transform: none; }
.mm-animate { transition: opacity .6s ease, transform .6s ease; }
html.mm-js .mm-animate { opacity: 0; transform: translateY(24px); }
html.mm-js .mm-animate.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.mm-js .mm-animate, html.mm-js .mm-animate.in { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Utility tweaks ---------- */
.text-gradient { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mm-divider { width: 70px; height: 5px; border-radius: 4px; background: var(--grad-cta); margin: 14px auto 0; }

.bg-soft-primary { background: #eff6ff; }
.section-title-wrap { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-title-wrap h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: 0; }

/* Scroll reveal group */
.mm-reveal, .mm-reveal.in { opacity: 1; transform: none; }
.mm-reveal { transition: opacity .6s ease, transform .6s ease; }
html.mm-js .mm-reveal { opacity: 0; transform: translateY(26px); }
html.mm-js .mm-reveal.in { opacity: 1; transform: none; }

/* Print */
@media print {
    .mm-header, .mm-footer, .mm-mobile-cta, .mm-float-btns, .mm-hero-nav { display: none !important; }
    body { padding-bottom: 0; }
}

/* Admin shared (light theme on admin uses its own file, small overlaps) */
.admin-body { background: #f1f5f9; font-family: var(--font); }
.admin-sidebar { background: var(--dark); min-height: 100vh; }
/* WhatsApp popup (home) */
.mm-wa-popup-backdrop {
    position: fixed; inset: 0; z-index: 1080;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .55); padding: 16px;
}
.mm-wa-popup {
    position: relative; width: 100%; max-width: 380px;
    background: #fff; border-radius: 18px; padding: 28px 24px 24px;
    text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    animation: mm-popup-in .35s ease;
}
@keyframes mm-popup-in {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
    to { opacity: 1; transform: none; }
}
.mm-wa-popup-close {
    position: absolute; top: 10px; right: 12px;
    border: 0; background: transparent; font-size: 22px;
    color: #64748b; line-height: 1; padding: 6px; border-radius: 50%;
}
.mm-wa-popup-close:hover { color: #e11d48; }
.mm-wa-popup-icon {
    width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}
.mm-wa-popup-title { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.mm-wa-popup-text { font-size: .92rem; color: #64748b; margin-bottom: 18px; }
.mm-wa-popup-form .form-control {
    height: 46px; border-radius: 10px; border-color: #cbd5e1;
    margin-bottom: 12px; text-align: center; letter-spacing: .5px;
}
.mm-wa-popup-form .form-control:focus { border-color: #25d366; box-shadow: 0 0 0 .2rem rgba(37, 211, 102, .18); }
.mm-wa-popup-form .wa-btn { height: 46px; border-radius: 10px; }
.mm-wa-popup-status { margin-top: 10px; text-align: center; }
