/* ============================================
   PARA TECH LIMITED - UNIFIED STYLE SHEET
   Matches the design system used on index.html:
   Navy / Green palette, Space Grotesk + Inter + IBM Plex Mono
   ============================================ */

:root {
    --navy-deep: #001B39;
    --navy-ink: #0A2647;
    --navy-mid: #0F2A52;
    --blue-accent: #1E56A0;
    --blue-bright: #2E7BD6;
    --green: #0D8A3E;
    --green-bright: #16A34A;
    --green-deep: #063D1B;
    --slate: #6B7280;
    --slate-light: #9AA3AF;
    --bg: #F5F7FB;
    --bg-alt: #EEF2F8;
    --white: #FFFFFF;
    --line: #E2E7F0;
    --shadow: 0 20px 50px -20px rgba(0, 27, 57, 0.25);
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--navy-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--navy-deep);
    letter-spacing: -0.01em;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

::selection { background: var(--green); color: white; }

/* ============================================
   NAVIGATION (glass header, scroll state)
   ============================================ */
.nav-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 24px rgba(0, 27, 57, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link {
    color: var(--navy-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    transition: all 0.25s ease;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--green);
    background: rgba(13, 138, 62, 0.08);
}

.nav-link.active {
    color: var(--green);
    background: rgba(13, 138, 62, 0.1);
    font-weight: 700;
}

/* ============================================
   CARDS
   ============================================ */
.glass-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 24px 50px -20px rgba(0, 27, 57, 0.3);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 27, 57, 0.15);
    border-color: var(--green);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-label {
    display: block;
    font-weight: 600;
    color: var(--navy-ink);
    margin-bottom: 8px;
    font-size: 14px;
}

.input-group {
    position: relative;
}

.input-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-light);
    z-index: 1;
    font-size: 16px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    padding-left: 48px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 16px;
    color: var(--navy-ink);
    transition: all 0.25s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.input-field:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(13, 138, 62, 0.12);
    background: var(--white);
}

.input-field::placeholder { color: var(--slate-light); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--green);
    color: white;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    box-shadow: 0 10px 24px -8px rgba(13, 138, 62, 0.55);
}

.btn-primary:hover {
    background: var(--green-bright);
    transform: translateY(-2px);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--navy-ink);
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: 1.5px solid rgba(10, 38, 71, 0.18);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.btn-outline:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-slide-up { animation: slideUp 0.6s ease forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease forwards; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-deep);
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-sale { background: rgba(220, 38, 38, 0.9); color: white; }
.badge-new { background: var(--green); color: white; }
.badge-used { background: rgba(139, 92, 246, 0.9); color: white; }

.stars {
    color: #F5A623;
    font-size: 14px;
    display: inline-flex;
    gap: 2px;
}

.stars .empty { color: #D1D5DB; }

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 9999;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInRight 0.3s ease;
}

.toast.success { border-left: 4px solid var(--green); color: var(--green-deep); }
.toast.error { border-left: 4px solid #DC2626; color: #7F1D1D; }
.toast.warning { border-left: 4px solid #F59E0B; color: #92400E; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--blue-bright), var(--green));
    border-radius: 10px;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(13, 138, 62, 0.12);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* WhatsApp float (shared with index.html) */
.wa-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px -8px rgba(13, 138, 62, 0.6);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 138, 62, 0.45); }
    70% { box-shadow: 0 0 0 16px rgba(13, 138, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 138, 62, 0); }
}
