/* Clic Market — CSS custom (complète Tailwind) */

:root {
    --cm-orange: #FF6B35;
    --cm-orange-dark: #E8571F;
    --cm-green: #0EA371;
    --cm-green-dark: #0B8A5E;
    --cm-ink: #0B0F19;
    --cm-sand: #FFF8F0;
    --cm-muted: #6B7280;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    background: var(--cm-sand);
    color: var(--cm-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Gradients */
.cm-gradient-warm {
    background: linear-gradient(135deg, #FF6B35 0%, #F7B267 100%);
}
.cm-gradient-cool {
    background: linear-gradient(135deg, #0EA371 0%, #34D399 100%);
}
.cm-gradient-hero {
    background: radial-gradient(ellipse at top, rgba(255, 107, 53, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at bottom, rgba(14, 163, 113, 0.1) 0%, transparent 60%),
                #FFF8F0;
}

/* Cards with subtle 3D on hover */
.cm-card {
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.cm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(11, 15, 25, 0.15);
}

/* Buttons */
.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all .2s;
    cursor: pointer;
    border: 0;
}
.cm-btn-primary {
    background: var(--cm-orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}
.cm-btn-primary:hover {
    background: var(--cm-orange-dark);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
    transform: translateY(-1px);
}
.cm-btn-secondary {
    background: var(--cm-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14, 163, 113, 0.35);
}
.cm-btn-secondary:hover {
    background: var(--cm-green-dark);
    transform: translateY(-1px);
}
.cm-btn-ghost {
    background: transparent;
    color: var(--cm-ink);
    border: 1.5px solid rgba(11, 15, 25, 0.12);
}
.cm-btn-ghost:hover {
    background: rgba(11, 15, 25, 0.04);
    border-color: rgba(11, 15, 25, 0.2);
}

/* Toast */
.cm-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--cm-ink);
    color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: cm-slide-in .3s ease-out;
}
.cm-toast-success { background: var(--cm-green); }
.cm-toast-error { background: #DC2626; }

@keyframes cm-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Animated counter */
.cm-counter { font-variant-numeric: tabular-nums; }

/* Focus rings */
input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--cm-orange);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(11, 15, 25, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(11, 15, 25, 0.3); }

/* Loader */
.cm-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cm-spin .7s linear infinite;
}
@keyframes cm-spin { to { transform: rotate(360deg); } }
