/*
 * CKOS Equipamentos Industriais
 * Design System - Liquid Glass
 * Inspirado na linguagem visual Apple Liquid Glass
 */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a25;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-bg-active: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.45);
    --text-muted: rgba(255, 255, 255, 0.3);
    --accent-red: #C41E1E;
    --accent-dark-red: #8B0000;
    --accent-gradient: linear-gradient(135deg, #C41E1E, #E8453A);
    --accent-gradient-dark: linear-gradient(135deg, #8B0000, #C41E1E);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Glass Effects */
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(24px);
    --blur-xl: blur(40px);

    /* Shadows */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-glass-hover: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-glow-red: 0 0 40px rgba(196, 30, 30, 0.3);
    --shadow-elevated: 0 24px 64px rgba(0, 0, 0, 0.5);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Background Ambient ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 800px 600px at 20% 20%, rgba(196, 30, 30, 0.06), transparent),
        radial-gradient(ellipse 600px 800px at 80% 80%, rgba(139, 0, 0, 0.04), transparent),
        radial-gradient(ellipse 1000px 500px at 50% 50%, rgba(255, 255, 255, 0.01), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== Glass Components ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-normal);
}

.glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glass-hover);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass-hover);
    border-color: var(--glass-border-hover);
}

/* ===== Header / Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-slow);
}

.navbar.scrolled {
    padding: 8px 0;
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-glass {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: var(--blur-xl);
    -webkit-backdrop-filter: var(--blur-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-2xl);
    padding: 12px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: all var(--transition-slow);
}

.navbar.scrolled .navbar-glass {
    border-radius: var(--radius-lg);
    padding: 8px 24px;
    background: rgba(10, 10, 15, 0.85);
}

.navbar-logo img {
    height: 60px;
    transition: height var(--transition-slow);
}

.navbar.scrolled .navbar-logo img {
    height: 48px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.navbar-links a.active {
    color: var(--text-primary);
    background: rgba(196, 30, 30, 0.15);
}

.navbar-cta {
    background: var(--accent-gradient);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(196, 30, 30, 0.3);
}

.navbar-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-red) !important;
    background: var(--accent-gradient) !important;
}

/* Mobile menu */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: var(--blur-xl);
    -webkit-backdrop-filter: var(--blur-xl);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--bg-primary) 0%, transparent 30%),
        linear-gradient(0deg, var(--bg-primary) 0%, transparent 30%),
        radial-gradient(circle at 30% 40%, rgba(196, 30, 30, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(139, 0, 0, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(196, 30, 30, 0.4);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    50% {
        transform: translateY(-200px) translateX(100px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 30, 30, 0.12);
    border: 1px solid rgba(196, 30, 30, 0.25);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #E8453A;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .shimmer {
    position: relative;
    display: inline-block;
}

.hero-title .shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: 4px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(196, 30, 30, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-red);
}

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

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Filters Section ===== */
.filters-section {
    padding: 80px 24px;
    position: relative;
    z-index: 2;
}

.filters-section-title {
    text-align: center;
    margin-bottom: 48px;
}

.filters-section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.filters-section-title p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filters-bar {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-xl);
    -webkit-backdrop-filter: var(--blur-xl);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 24px 32px;
    box-shadow: var(--shadow-glass);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
    position: relative;
}

.filters-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.filter-group select,
.filter-group input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: rgba(196, 30, 30, 0.5);
    box-shadow: 0 0 0 3px rgba(196, 30, 30, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.filter-group select option {
    background: #1a1a25;
    color: #fff;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.btn-filter {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

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

.btn-clear {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.results-info {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.results-info strong {
    color: var(--text-primary);
}

/* ===== Machines Grid ===== */
.machines-section {
    padding: 0 24px 80px;
    position: relative;
    z-index: 2;
}

.machines-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.machine-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-normal);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.machine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    z-index: 1;
}

.machine-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-glass-hover);
    border-color: var(--glass-border-hover);
}

.machine-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.machine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.machine-card:hover .machine-card-image img {
    transform: scale(1.08);
}

.machine-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(196, 30, 30, 0.85);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.machine-card-destaque {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(245, 158, 11, 0.85);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    z-index: 2;
}

.machine-card-body {
    padding: 20px 24px 24px;
}

.machine-card-tipo {
    font-size: 11px;
    font-weight: 600;
    color: #E8453A;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.machine-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.machine-card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.machine-card-spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.machine-card-spec-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.machine-card-spec-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.machine-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.machine-card-price {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.machine-card-price strong {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

.machine-card-link {
    font-size: 13px;
    font-weight: 600;
    color: #E8453A;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition-fast);
}

.machine-card:hover .machine-card-link {
    gap: 8px;
}

/* ===== No Image Placeholder ===== */
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 48px;
}

/* ===== Machine Detail Page ===== */
.detail-section {
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.detail-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.detail-breadcrumb a:hover {
    color: var(--text-primary);
}

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

.detail-gallery {
    position: sticky;
    top: 100px;
}

.detail-gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-tertiary);
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
}

.detail-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.detail-gallery-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-tertiary);
}

.detail-gallery-thumb:hover,
.detail-gallery-thumb.active {
    border-color: var(--accent-red);
}

.detail-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-tipo {
    font-size: 12px;
    font-weight: 600;
    color: #E8453A;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.detail-badge.novo {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.detail-badge.usado {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.detail-badge.seminovo {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.detail-badge.recondicionado {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.detail-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.detail-specs {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-glass);
}

.detail-specs h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-spec-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-spec-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-price {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
}

.detail-price-label {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.detail-price-value {
    font-size: 32px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-contact .btn {
    width: 100%;
    justify-content: center;
}

/* ===== Footer ===== */
.footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 64px 24px 32px;
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand img {
    height: 48px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Loading / Skeleton ===== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-tertiary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== Toast / Notification ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: var(--shadow-elevated);
    animation: slideInRight 0.4s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--danger);
}

.toast.warning {
    border-left: 3px solid var(--warning);
}

.toast.info {
    border-left: 3px solid var(--info);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-gallery {
        position: static;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-glass {
        padding: 10px 20px;
    }

    .hero {
        padding: 100px 16px 60px;
        min-height: 90vh;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-number {
        font-size: 28px;
    }

    .filters-bar {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: var(--radius-xl);
    }

    .machines-grid {
        grid-template-columns: 1fr;
    }

    .detail-specs-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* Hero Swiper */
.hero-swiper {
    padding-bottom: 50px !important;
    overflow: visible !important;
    perspective: 1200px;
}

.swiper-slide {
    width: 85%;
    max-width: 900px;
    /* Reduzido de 1000px para mostrar mais as bordas */
    height: auto;
    transition: all 0.5s ease;
    opacity: 0.4;
    transform: scale(0.95);
    /* Aumentado de 0.85 para diminuir gap visual */
    /* Reduzir escala dos inativos */
    filter: blur(2px);
    /* Desfocar levemente os inativos */
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    filter: blur(0);
}

@media (min-width: 1024px) {
    .swiper-slide {
        max-width: 1200px;
        width: 75%;
        /* Aumentado de 65% */
        /* Garante ~17.5% de espaço em cada lado para os vizinhos */
    }
}

@media (min-width: 1600px) {
    .swiper-slide {
        width: 55%;
        /* Em telas muito largas, mostra mais dos lados */
    }
}

.hero-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Glass shine effect */
.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.hero-card:hover::before {
    left: 100%;
    transition: 1s;
}

/* Mídia Formato Story (Vertical) */
.hero-card-media {
    flex: 0 0 auto;
    /* Não esticar, respeitar largura baseada na altura */
    width: 300px;
    /* Largura inicial desktop */
    aspect-ratio: 9/16;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 20px;
    /* Margem interna no card */
    border-radius: 16px;
    /* Borda arredondada na mídia */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 992px) {
    .hero-card {
        flex-direction: row;
        align-items: center;
        /* Centralizar verticalmente */
        min-height: 600px;
        /* Aumentar altura mínima */
    }

    .hero-card-media {
        height: 560px;
        /* Altura fixa para garantir proporção */
        width: auto;
        /* Largura automática baseada no aspect-ratio 9/16 */
        /* 560px height -> ~315px width */
        margin-left: 40px;
    }
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Preencher todo o espaço (Story style) */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.swiper-slide-active .hero-media {
    animation: none;
    /* Remover float que pode cortar imagem cover */
}

/* Preço antigo removido */

.hero-card-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    position: relative;
}

.hero-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 16px;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-slide-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-slide-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-spec-item {
    display: flex;
    flex-direction: column;
}

.hero-spec-item .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.hero-spec-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.hero-price-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Alinhado à direita */
    gap: 24px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 768px) {
    .hero-price-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 16px;
    }

    .hero-price-value {
        font-size: 2rem;
    }

    .hero-price-actions .btn {
        width: 100%;
    }
}

/* Swiper Controls */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: 0.3s;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 5px;
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

/* Swiper Controls - Redesign Premium */
.swiper-pagination {
    display: none !important;
}

.swiper-button-prev,
.swiper-button-next {
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 50%;
    /* Círculo perfeito */
    color: var(--accent-red) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 24px;
    font-weight: 300;
    /* Ícone mais fino e elegante */
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: scale(1.15) rotate(0deg);
    /* Efeito de escala suave */
    color: var(--accent-dark-red) !important;
}

/* Posicionamento mais espaçado */
.swiper-button-prev {
    left: 40px;
}

.swiper-button-next {
    right: 40px;
}

@media (max-width: 768px) {

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
        /* Esconder em mobile, usar swipe */
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

@media (max-width: 768px) {
    .hero-slide-title {
        font-size: 1.8rem;
    }

    .hero-card-content {
        padding: 24px;
    }

    .hero-specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }

    .hero-slide-actions {
        width: 100%;
    }

    .hero-slide-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Ajuste Mobile 9:16 (Story/Reels format) */
    .hero-card-media {
        aspect-ratio: 9/16;
        min-height: auto;
        padding: 0;
        /* Remove padding para imagem full width */
        max-height: 70vh;
        /* Evita que o card fique maior que a tela */
    }

    .hero-media {
        object-fit: cover;
        /* Preenche todo o espaço vertical/horizontal */
        max-height: none;
        width: 100%;
        height: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}