:root {
    --primary: #6DB33F;
    --primary-dark: #5a9634;
    --primary-light: #e8f5e0;
    --dark: #2D3436;
    --gray: #636E72;
    --light-gray: #F5F6FA;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark);
}

.site-header .navbar {
    padding: 0.75rem 0;
}

.site-header .navbar-brand img {
    height: 45px;
    width: auto;
}

.site-header .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--primary) !important;
}

.site-header .dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 0.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero .badge {
    background: var(--primary) !important;
}

.hero .text-muted {
    color: rgba(255,255,255,0.6) !important;
}

.hero-visual {
    font-size: 15rem;
    opacity: 0.1;
}

/* Sections */
.section-white {
    padding: 5rem 0;
    background: var(--white);
}

.section-light {
    padding: 5rem 0;
    background: var(--light-gray);
}

.section-primary {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-weight: 800;
    font-size: 2rem;
}

/* Page Hero */
.page-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.page-hero h1 {
    font-weight: 800;
}

/* Category Cards */
.category-card {
    display: block;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
    text-decoration: none;
    color: var(--dark);
}

.category-card .category-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.category-card .category-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

/* Product Cards */
.product-card {
    border: 1px solid #eee;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-img {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background: var(--light-gray);
}

.product-img-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
}

.product-img-placeholder i {
    font-size: 3rem;
}

/* Filter Sidebar */
.filter-sidebar {
    z-index: 10;
}

/* Catalog Cards */
.catalog-card {
    transition: all 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.catalog-img {
    height: 120px;
    object-fit: contain;
    padding: 0.5rem;
    background: var(--light-gray);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.site-footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.site-footer .footer-text {
    color: rgba(255,255,255,0.75);
}

.site-footer .footer-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-link:hover {
    color: var(--primary) !important;
}

.site-footer .footer-hr {
    border-color: rgba(255,255,255,0.1);
}

.site-footer a:hover {
    color: var(--primary) !important;
}

/* Blog Content */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2, .blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.25rem;
}

/* Comparison Bar */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 1rem;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero .display-4 {
        font-size: 2rem;
    }

    .section-white, .section-light, .section-primary {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 2rem 0;
    }

    .hero .display-4 {
        font-size: 1.75rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .product-img {
        height: 160px;
    }
}

/* Utility */
.opacity-25 {
    opacity: 0.25 !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* HTMX loading indicator */
.htmx-request {
    opacity: 0.6;
    pointer-events: none;
}

.htmx-request::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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