/* CSS Variables */
:root {
    --primary: #2d5a27;
    --primary-light: #4a7c43;
    --primary-dark: #1e3d1a;
    --secondary: #8b6914;
    --secondary-light: #c99d2c;
    --accent: #e8f5e9;
    --background: #fafafa;
    --surface: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-amazon {
    background: #ff9900;
    color: #111;
    font-weight: 600;
}

.btn-amazon:hover {
    background: #ffad33;
    color: #111;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Header */
.header {
    background: var(--surface);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.logo:hover {
    color: var(--text);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-au {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent) 0%, #c8e6c9 100%);
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-graphic {
    width: 100%;
    max-width: 500px;
}

.garden-illustration {
    position: relative;
    height: 300px;
    background: linear-gradient(180deg, #87ceeb 0%, #87ceeb 60%, transparent 60%);
    border-radius: var(--radius);
    overflow: hidden;
}

.grass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, #4caf50 0%, #2e7d32 100%);
}

.edging-demo {
    position: absolute;
    bottom: 50%;
    left: 10%;
    right: 10%;
    height: 8px;
    background: linear-gradient(90deg, #5d4037 0%, #795548 50%, #5d4037 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.flowers {
    position: absolute;
    bottom: 55%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 0 15%;
    font-size: 2rem;
}

.flowers span {
    animation: sway 3s ease-in-out infinite;
}

.flowers span:nth-child(2) { animation-delay: 0.5s; }
.flowers span:nth-child(3) { animation-delay: 1s; }
.flowers span:nth-child(4) { animation-delay: 1.5s; }

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Categories */
.categories {
    padding: 60px 0;
    background: var(--surface);
}

.categories h2 {
    text-align: center;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.category-card.active {
    border-color: var(--primary);
    background: var(--accent);
}

.category-icon {
    font-size: 2rem;
}

.category-name {
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.view-toggle {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

.view-btn:hover:not(.active) {
    background: var(--accent);
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-control label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sort-control select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--surface);
    cursor: pointer;
}

/* Products Section */
.products {
    padding: 40px 0 80px;
}

.products h2 {
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 1;
}

.product-badge.bestseller {
    background: #e53935;
}

.product-badge.eco {
    background: var(--primary);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.product-compare {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.product-compare:hover {
    border-color: var(--primary);
}

.product-compare input {
    cursor: pointer;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

.stars {
    color: #ffc107;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.8rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.feature-tag {
    padding: 4px 10px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.75rem;
    border-radius: 20px;
}

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

.product-actions .btn {
    flex: 1;
}

/* Product Table */
.product-table-wrapper {
    overflow-x: auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px var(--shadow);
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

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

.product-table th {
    background: var(--accent);
    font-weight: 600;
    color: var(--primary-dark);
    position: sticky;
    top: 0;
}

.product-table tr:hover {
    background: var(--background);
}

.product-table .product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-table .product-thumb {
    width: 60px;
    height: 60px;
    background: var(--background);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.product-table .product-name {
    font-weight: 500;
    margin: 0;
    font-size: 0.95rem;
}

.hidden {
    display: none !important;
}

/* Compare Section */
.compare-section {
    padding: 80px 0;
    background: var(--surface);
}

.compare-section h2 {
    text-align: center;
    margin-bottom: 12px;
}

.compare-selection {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
    min-height: 50px;
}

.compare-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 24px;
    background: var(--background);
    border-radius: var(--radius);
    width: 100%;
}

.compare-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent);
    border-radius: 20px;
    font-size: 0.9rem;
}

.compare-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1;
}

.compare-item-remove:hover {
    color: #e53935;
}

.compare-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
}

.compare-table th,
.compare-table td {
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
    min-width: 150px;
}

.compare-table th {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.compare-table th:first-child {
    background: var(--primary-dark);
    text-align: left;
}

.compare-table td:first-child {
    background: var(--accent);
    font-weight: 500;
    text-align: left;
}

.compare-table .product-header {
    padding: 24px 16px;
}

.compare-table .product-header-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.compare-table .btn-amazon {
    margin-top: 12px;
}

.clear-compare {
    display: block;
    margin: 0 auto;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.quiz-header {
    text-align: center;
    margin-bottom: 32px;
}

.quiz-header h2 {
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.quiz-header p {
    color: var(--text-secondary);
}

.quiz-progress {
    margin-bottom: 32px;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width var(--transition);
    width: 20%;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    display: block;
}

.quiz-content {
    min-height: 250px;
}

.quiz-question {
    margin-bottom: 24px;
}

.quiz-question h3 {
    margin-bottom: 20px;
    color: var(--text);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.quiz-option:hover {
    border-color: var(--primary-light);
    background: var(--accent);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: var(--accent);
}

.quiz-option input {
    display: none;
}

.quiz-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.quiz-option.selected .quiz-option-radio {
    border-color: var(--primary);
}

.quiz-option.selected .quiz-option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.quiz-option-text {
    font-weight: 500;
}

.quiz-result {
    text-align: center;
}

.quiz-result h3 {
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.quiz-recommendation {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommendation-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--background);
    border-radius: var(--radius);
    text-align: left;
    align-items: center;
}

.recommendation-rank {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    width: 60px;
    text-align: center;
}

.recommendation-info {
    flex: 1;
}

.recommendation-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.recommendation-reason {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

/* Guide Section */
.guide-section {
    padding: 80px 0;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 12px;
}

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

.guide-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px var(--shadow);
    transition: all var(--transition);
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.guide-card h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.guide-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.comparison-chart {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px var(--shadow);
}

.comparison-chart h3 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.chart-container {
    overflow-x: auto;
}

.material-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.material-table th,
.material-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.material-table th {
    background: var(--accent);
    font-weight: 600;
    color: var(--primary-dark);
}

.material-table td:first-child {
    text-align: left;
}

.material-table tr:hover {
    background: var(--background);
}

/* SEO Content Section */
.seo-content {
    padding: 80px 0;
    background: var(--surface);
}

.seo-content h2 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--primary-dark);
}

.seo-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.seo-text h3 {
    color: var(--text);
    margin: 32px 0 16px;
}

.seo-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.affiliate-disclosure {
    font-size: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--surface);
        padding: 20px;
        gap: 16px;
        box-shadow: 0 4px 12px var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .quiz-container {
        padding: 24px;
    }

    .quiz-navigation {
        flex-wrap: wrap;
    }

    .quiz-navigation .btn {
        flex: 1;
        min-width: 120px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .view-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggle {
        justify-content: center;
    }

    .sort-control {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .comparison-chart {
        padding: 20px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }
