:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --secondary-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --gray-color: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 40px;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.primary-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.primary-menu a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Plugins Hero */
.plugins-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.plugins-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Plugins Grid */
.plugins-grid-section {
    padding: 60px 0;
    background: var(--light-color);
}

.plugins-filter {
    margin-bottom: 40px;
}

.search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.plugin-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

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

.plugin-card-inner {
    padding: 24px;
}

.plugin-icon {
    margin-bottom: 16px;
}

.plugin-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.plugin-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.plugin-title a {
    text-decoration: none;
    color: var(--dark-color);
}

.plugin-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--gray-color);
}

.rating {
    color: var(--secondary-color);
}

.plugin-excerpt {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.plugin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.price.free {
    color: #10b981;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

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

.btn-secondary {
    background: #10b981;
    color: white;
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--gray-color);
}

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

.btn-large {
    padding: 14px 28px;
    font-size: 18px;
}

/* Single Plugin Page */
.plugin-single-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.plugin-hero-content {
    max-width: 800px;
}

.plugin-hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.plugin-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
}

.plugin-actions-hero {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Tabs */
.plugin-tabs {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 40px 0;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    list-style: none;
    background: var(--light-color);
}

.tab-nav li {
    padding: 15px 25px;
    cursor: pointer;
}

.tab-nav li.active {
    background: white;
    border-bottom: 2px solid var(--primary-color);
}

.tab-nav a {
    text-decoration: none;
    color: var(--dark-color);
}

.tab-pane {
    display: none;
    padding: 30px;
}

.tab-pane.active {
    display: block;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--light-color);
    font-weight: 600;
}

/* FAQ */
.faq-item {
    margin-bottom: 30px;
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding-left: 20px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Customize Section */
.customize-section {
    padding: 60px 0;
    background: var(--light-color);
}

.customize-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.customize-card h3 {
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: #9ca3af;
    text-decoration: none;
    line-height: 2;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .plugin-hero-content h1 {
        font-size: 32px;
    }
    
    .plugin-actions-hero {
        flex-direction: column;
    }
    
    .btn-large {
        text-align: center;
    }
}