/*
Theme Name: Quali Instrumentos
Theme URI: https://www.quali.ind.br
Author: Quali
Author URI: https://www.quali.ind.br
Description: Tema WordPress customizado para Quali Indústria e Comércio de Instrumentos de Medição. Inclui carrossel de produtos, formulário de orçamento, catálogo com filtros e modal de imagem.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quali-instrumentos
*/

/* ============================================
   QUALI - Estilos Compartilhados
   Instrumentos de Medição e Controle
   ============================================ */

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

:root {
    --primary: #63BC50;
    --primary-dark: #4a9a3a;
    --primary-light: rgba(99, 188, 80, 0.08);
    --secondary: #9ACA48;
    --dark: #1a1a2e;
    --dark-alt: #16213e;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #f0f2f5;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    font-weight: 600;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 24px;
    color: var(--text);
    line-height: 1;
}

.nav-menu { display: flex; align-items: center; gap: 4px; }

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-light);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu a[aria-current="page"] {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-menu a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.header-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.header-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.header-cta::after { display: none !important; }

/* ============================================
   HERO / PAGE HEADER
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,188,80,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(154,202,72,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 400px;
}

.hero-image-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-image-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.hero-image-card .icon { font-size: 32px; margin-bottom: 12px; }
.hero-image-card h3 { font-size: 14px; font-weight: 600; color: var(--secondary); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99,188,80,0.12);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(99,188,80,0.25);
}

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    max-width: 700px;
}

.hero h1 span { color: var(--primary); }

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 600px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-dark {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.btn-dark:hover { background: #2a2a4a; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-ghost:hover { background: var(--primary); color: #fff; }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }

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

.section-header .overline {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.2;
}

.section-dark .section-header h2 { color: #fff; }

.section-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-dark .section-header p { color: rgba(255,255,255,0.7); }

.certificate-frame {
    display: inline-block;
    background: #fff;
    padding: 22px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.certificate-frame img {
    display: block;
    margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    transition: var(--transition);
}

.card:hover .card-icon { background: var(--primary); }

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

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

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover::before { transform: scaleX(1); }

.product-icon {
    width: 64px;
    height: 64px;
    background: rgba(99,188,80,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.product-card a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.product-card a:hover { gap: 8px; }

.product-card-image {
    background: var(--bg-alt);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.product-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover .product-card-image::before { transform: scaleX(1); }

.product-card-image .product-emoji { font-size: 64px; }

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

.product-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    justify-content: center;
}

.spec-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-alt);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover { box-shadow: var(--shadow); }

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--dark); }
.feature-card p { font-size: 14px; color: var(--text-light); }

.feature-row {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    align-items: flex-start;
}

.feature-row:hover { box-shadow: var(--shadow); border-color: var(--primary); }

.feature-row-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.feature-row h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--dark); }
.feature-row p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ============================================
   ABOUT / TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.timeline-item .year {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   STATS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 0 24px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-banner h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; position: relative; }
.cta-banner p { font-size: 16px; margin-bottom: 32px; opacity: 0.9; position: relative; }

.cta-banner .btn {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
    position: relative;
}

.cta-banner .btn:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

/* CTA (index page) */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
    border-radius: var(--radius);
    margin: 0 24px;
}

.cta h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.cta p { font-size: 16px; margin-bottom: 32px; opacity: 0.9; }

.cta .btn {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
}

.cta .btn:hover { background: var(--dark); color: #fff; border-color: var(--dark); }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

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

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.contact-item h4 { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.contact-item p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.contact-item a:hover { color: var(--primary); }

.contact-form {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

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

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,188,80,0.12);
}

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

.upload-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px dashed var(--primary);
    border-radius: var(--radius);
    background: rgba(99,188,80,0.06);
    cursor: pointer;
    transition: var(--transition);
}

.upload-box:hover { background: rgba(99,188,80,0.12); }
.upload-box input[type="file"] { display: none; }
.upload-box-icon { font-size: 18px; }
.upload-box-text { font-size: 14px; font-weight: 500; color: var(--primary); }
.upload-file { display: block; font-size: 13px; color: var(--text-light); margin-top: 8px; }
.upload-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.form-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.form-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ============================================
   DOWNLOADS
   ============================================ */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.download-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #e74c3c;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.download-info h4 { font-size: 13px; font-weight: 600; color: var(--dark); }
.download-info p { font-size: 12px; color: var(--text-muted); }

/* ============================================
   PRODUCT PAGE - CATALOG
   ============================================ */
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.catalog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(10); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; color: rgba(255,255,255,0.6); }

.footer h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer ul a,
.footer ul li {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.footer ul a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    font-size: 14px;
}

.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

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

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.4s; }

/* ============================================
   PRODUCTS CAROUSEL
   ============================================ */
.carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 0 20px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--border-light);
}

.carousel-track::-webkit-scrollbar {
    height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.carousel-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.carousel-item .product-card {
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: default;
}

.carousel-item .product-card-image {
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
    padding: 16px;
    min-height: 0;
}

.carousel-item .product-card-image img {
    max-height: 160px;
    max-width: 80%;
    object-fit: contain;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

.carousel-link {
    display: block;
    text-align: center;
    margin-top: 24px;
}

/* ============================================
   LEAD CAPTURE SECTION
   ============================================ */
.lead-section {
    background: linear-gradient(135deg, #f8faf8 0%, #e8f5e9 100%);
}

.lead-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.lead-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.lead-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.lead-info h2 span {
    color: var(--primary);
}

.lead-info > p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.lead-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.lead-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
}

.lead-benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.lead-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.lead-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
}

.lead-form-container {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.lead-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #34d058);
}

.lead-form-group {
    margin-bottom: 16px;
}

.lead-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.lead-form-group input,
.lead-form-group select,
.lead-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    transition: all 0.2s ease;
}

.lead-form-group input:focus,
.lead-form-group select:focus,
.lead-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,188,80,0.15);
    background: #fff;
}

.lead-form-group input::placeholder,
.lead-form-group textarea::placeholder {
    color: #999;
}

.lead-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lead-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.lead-submit:hover {
    background: #2ea44f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99,188,80,0.4);
}

.lead-submit:active {
    transform: translateY(0);
}

.lead-privacy {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 16px;
}

.lead-privacy a {
    color: var(--primary);
    text-decoration: none;
}

.lead-privacy a:hover {
    text-decoration: underline;
}

.lead-success {
    text-align: center;
    padding: 40px 20px;
}

.lead-success-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    animation: successPop 0.4s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.lead-success h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 8px;
}

.lead-success p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ============================================
   PRODUCTS PAGE - LAYOUT + MODAL
   ============================================ */
.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.sidebar-search {
    position: relative;
    margin-bottom: 20px;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-alt);
    transition: var(--transition);
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(99,188,80,0.12);
}

.sidebar-search input::placeholder { color: var(--text-muted); }

.sidebar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.sidebar-nav { list-style: none; }

.sidebar-nav li { margin-bottom: 2px; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: #fff;
}

.sidebar-nav a .icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-nav .count {
    margin-left: auto;
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.sidebar-nav a.active .count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.search-results-info {
    display: none;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--primary-dark);
    align-items: center;
    justify-content: space-between;
}

.search-results-info.visible { display: flex; }

.search-clear {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}

.no-results {
    display: none;
    text-align: center;
    padding: 64px 24px;
    color: var(--text-light);
}

.no-results.visible { display: block; }

.no-results-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.no-results h3 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }
.no-results p { font-size: 14px; }

.sidebar-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    margin-bottom: 16px;
    text-align: left;
    font-family: inherit;
}

/* Product card image refinement (products page) */
.product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-light);
    padding: 16px;
}

.product-card-image img {
    max-height: 180px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
}

.product-emoji {
    font-size: 64px;
    opacity: 0.6;
}

/* Product Card Clickable */
.product-card.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Modal Overlay */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.active {
    display: flex;
    opacity: 1;
}

.product-modal-content {
    background: var(--bg);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.product-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-modal-close:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: scale(1.1);
}

.product-modal-image {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-light);
}

.product-modal-image img {
    max-width: 80%;
    max-height: 320px;
    object-fit: contain;
}

.product-modal-body {
    padding: 24px;
}

.product-modal-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.product-modal-body p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-modal-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-modal-specs .spec-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-modal-actions {
    display: flex;
    gap: 12px;
}

.product-modal-actions a {
    flex: 1;
    text-align: center;
}

.product-modal-actions button {
    flex: 1;
}

/* ============================================
   CONTACT PAGE - MAP / FAQ
   ============================================ */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.file-upload-label:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.file-upload-label input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.required-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ============================================
   WORDCOUNT / BLOG FALLBACK
   ============================================ */
.entry-content { padding: 40px 0; }
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--dark); margin: 24px 0 12px; }
.entry-content p { margin-bottom: 16px; line-height: 1.8; }
.entry-content img { border-radius: var(--radius); margin: 16px 0; }
.entry-content a { color: var(--primary); text-decoration: underline; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .products-layout { grid-template-columns: 1fr; }
    .lead-wrapper { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 968px) {
    .sidebar-toggle { display: flex; align-items: center; gap: 8px; }
    .sidebar { position: static; display: none; margin-bottom: 24px; }
    .sidebar.mobile-open { display: block; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-menu,
    .nav-menu ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        gap: 0;
        margin: 0;
    }

    .nav-menu.active { display: flex; }
    .nav-menu.active ul { display: flex; }
    .nav-menu a { padding: 12px 0; width: 100%; }
    .nav-menu a::after { display: none; }
    .header-cta { display: none; }

    .hero { padding: 48px 0; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .section { padding: 48px 0; }
    .section-header h2 { font-size: 24px; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    .cta-banner { margin: 0 16px; padding: 48px 0; }
    .cta-banner h2 { font-size: 24px; }
    .cta { margin: 0 16px; padding: 48px 0; }
    .cta h2 { font-size: 24px; }

    .carousel-item { flex: 0 0 240px; }
    .lead-form-row { grid-template-columns: 1fr; }
    .lead-form-container { padding: 24px 16px; }
}

@media (max-width: 640px) {
    .product-modal-content { max-height: 95vh; }
    .product-modal-image { height: 250px; }
    .product-modal-body { padding: 16px; }
    .product-modal-actions { flex-direction: column; }
    .lead-info h2 { font-size: 26px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-number { font-size: 28px; }
    .catalog-header { flex-direction: column; align-items: stretch; }
    .carousel-item { flex: 0 0 85vw; }
    .carousel-btn { width: 36px; height: 36px; font-size: 16px; }
}

/* Form error message */
.form-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #a71d2a;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Post meta */
.post-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    background: var(--bg);
}

.pagination .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Search form */
.search-form {
    display: flex;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 188, 80, 0.15);
}

.search-form .search-submit {
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.search-form .search-submit:hover {
    background: var(--primary-dark);
}

/* Screen reader text (accessibility) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.chat-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.chat-fab:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.chat-label {
    position: relative;
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    font-family: inherit;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-label:hover { background: var(--primary); }

.chat-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 26px;
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
    transition: var(--transition);
}

.chat-label:hover::after { border-color: var(--primary) transparent transparent transparent; }

.chat-label[hidden] { display: none; }

.chat-window {
    width: 360px;
    max-width: calc(100vw - 32px);
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.chat-window[hidden] { display: none; }

.chat-header {
    background: var(--dark);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-header-info { display: flex; flex-direction: column; }
.chat-header-info strong { font-size: 14px; }
.chat-header-info span { font-size: 12px; opacity: 0.75; }

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.chat-body {
    height: 360px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-alt);
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-msg.bot {
    background: #fff;
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
}

.chat-msg.user {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-typing-msg {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.chat-typing { display: inline-flex; gap: 4px; padding: 2px 0; }

.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: chat-bounce 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chat-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; }

.chat-chip {
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.chat-chip:hover { background: var(--primary); color: #fff; }

.chat-summary {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-self: flex-start;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.chat-summary-row b { color: var(--dark); font-weight: 600; }
.chat-summary-row span { color: var(--text-light); }

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

.chat-btn {
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.chat-btn.primary { background: var(--primary); color: #fff; }
.chat-btn.primary:hover { background: var(--primary-dark); }
.chat-btn.ghost { background: #fff; color: var(--text-light); border: 1px solid var(--border); }
.chat-btn.ghost:hover { border-color: var(--primary); color: var(--primary); }

.chat-input-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border-light);
    background: #fff;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    color: var(--text);
}

.chat-input:focus { border-color: var(--primary); }

.chat-send {
    border: none;
    background: var(--primary);
    color: #fff;
    width: 42px;
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send:hover { background: var(--primary-dark); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-file-input { display: none; }

.chat-attach {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-light);
    width: 42px;
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-attach:hover { border-color: var(--primary); color: var(--primary); }
.chat-attach:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-file-msg {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-file-remove {
    border: none;
    background: rgba(255,255,255,0.25);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-file-remove:hover { background: rgba(255,255,255,0.45); }

@media (max-width: 480px) {
    .chat-widget { bottom: 16px; right: 16px; left: 16px; align-items: flex-end; }
    .chat-window { width: 100%; max-width: none; }
    .chat-body { height: 300px; }
    .chat-label { max-width: 75%; justify-content: center; }
}
