/*
Theme Name: Axlown
Theme URI: https://axlown.com
Author: Axlown Team
Author URI: https://axlown.com
Description: A clean, responsive WordPress theme designed for Amazon affiliate websites in the lawn and garden niche. Features product review layouts, blog sections, and a mobile-friendly design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: axlown
Tags: one-column, two-columns, blog, custom-background, custom-logo, custom-menu, e-commerce, full-width-template, sticky-post, threaded-comments, translation-ready, featured-images, theme-options
*/

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;
    --secondary: #d97706;
    --accent: #2563eb;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

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

body { font-family: var(--font-body); color: var(--text); line-height: 1.7; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; transition: box-shadow 0.3s ease; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: var(--text); font-family: var(--font-heading); }
.logo i { color: var(--primary); font-size: 1.8rem; }
.nav-list { display: flex; list-style: none; gap: 8px; }
.nav-link { padding: 10px 16px; color: var(--text-light); font-weight: 500; border-radius: var(--radius-sm); transition: all 0.3s ease; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 25px; height: 3px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.page-hero { background: linear-gradient(135deg, var(--primary-light), var(--bg-light)); padding: 60px 0; text-align: center; }
.page-hero h1 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 12px; }
.page-hero p { color: var(--text-light); font-size: 1.1rem; }

/* Hero Banner */
.hero-section { position: relative; height: 500px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #15803d, #16a34a); }
.hero-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); padding: 0 20px; }
.hero-content h1 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 16px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 32px; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.3s ease; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-amazon { background: #f59e0b; color: var(--text); }
.btn-amazon:hover { background: #d97706; color: var(--white); transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

/* Category Cards */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card { background: var(--white); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow); transition: all 0.3s ease; border: 1px solid var(--border); }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.category-icon { width: 70px; height: 70px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.8rem; color: var(--primary); }
.category-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.category-card p { color: var(--text-light); font-size: 0.9rem; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s ease; border: 1px solid var(--border); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-image { height: 180px; background: var(--bg-lighter); display: flex; align-items: center; justify-content: center; }
.product-placeholder { font-size: 3rem; color: var(--primary); opacity: 0.4; }
.product-content { padding: 20px; }
.product-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.top-pick { background: var(--primary); }
.editor-choice { background: var(--accent); }
.bestseller { background: var(--secondary); }
.product-content h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-rating { display: flex; align-items: center; gap: 8px; }
.stars { color: #f59e0b; font-size: 0.85rem; }
.product-rating span { color: var(--text-light); font-size: 0.85rem; }

/* Blog */
.blog-list { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.blog-article { display: flex; gap: 20px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; transition: all 0.3s ease; border: 1px solid var(--border); }
.blog-article:hover { box-shadow: var(--shadow-md); }
.blog-article-image { width: 220px; min-height: 180px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); opacity: 0.4; flex-shrink: 0; }
.blog-article-content { padding: 24px; flex: 1; }
.blog-article-meta { display: flex; gap: 16px; margin-bottom: 12px; color: var(--text-light); font-size: 0.85rem; }
.blog-article-meta i { margin-right: 4px; color: var(--primary); }
.blog-article-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.blog-article-content p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 12px; }
.read-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.sidebar-widget h3 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.sidebar-categories { list-style: none; }
.sidebar-categories li { margin-bottom: 10px; }
.sidebar-categories a { display: flex; justify-content: space-between; color: var(--text-light); font-size: 0.95rem; padding: 6px 0; border-bottom: 1px solid var(--bg-lighter); }
.sidebar-categories a:hover { color: var(--primary); }
.sidebar-categories .count { background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }

/* Trust Section */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-item { padding: 24px; }
.trust-item i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.trust-item h3 { font-size: 1rem; margin-bottom: 8px; }
.trust-item p { color: var(--text-light); font-size: 0.9rem; }

/* Review Cards */
.review-list { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.review-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; border: 1px solid var(--border); }
.review-card-header { display: flex; gap: 20px; padding: 24px; }
.review-image { width: 120px; height: 120px; background: var(--bg-lighter); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); opacity: 0.4; flex-shrink: 0; }
.review-info { flex: 1; }
.product-category { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 3px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; margin-bottom: 8px; }
.review-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.review-meta { display: flex; align-items: center; gap: 12px; }
.review-meta span { color: var(--text-light); font-size: 0.85rem; }
.review-card-body { padding: 0 24px; }
.review-card-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 12px; }
.review-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.review-tag { background: var(--bg-lighter); color: var(--text-light); padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; }
.review-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--bg-light); border-top: 1px solid var(--border); }
.review-rating-large { display: flex; flex-direction: column; align-items: center; }
.rating-number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.rating-label { font-size: 0.8rem; color: var(--text-light); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info-box { background: var(--bg-light); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); }
.contact-methods { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-method { display: flex; align-items: center; gap: 16px; }
.contact-method i { width: 48px; height: 48px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.contact-method h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-method p { color: var(--text-light); font-size: 0.85rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 1.05rem; }
.about-visual { display: flex; align-items: center; justify-content: center; }
.about-visual i { font-size: 8rem; color: var(--primary); opacity: 0.2; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--white); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.value-icon { width: 60px; height: 60px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.5rem; color: var(--primary); }
.value-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.value-card p { color: var(--text-light); font-size: 0.95rem; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 60px 0; text-align: center; color: var(--white); }
.newsletter h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 12px; }
.newsletter p { margin-bottom: 24px; opacity: 0.9; }
.newsletter-form { display: flex; max-width: 500px; margin: 0 auto; gap: 12px; }
.newsletter-form input { flex: 1; padding: 14px 20px; border: none; border-radius: var(--radius-sm); font-size: 1rem; }
.newsletter-form button { padding: 14px 24px; background: var(--white); color: var(--primary); border: none; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; transition: all 0.3s ease; }
.newsletter-form button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Footer */
.footer { background: var(--text); color: var(--white); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; font-family: var(--font-heading); }
.footer-logo i { color: var(--primary); }
.footer-desc { color: #9ca3af; font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: all 0.3s ease; }
.social-links a:hover { background: var(--primary); }
.footer h4 { margin-bottom: 16px; font-size: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #9ca3af; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); color: #9ca3af; font-size: 0.85rem; }

/* Affiliate Disclosure */
.affiliate-disclosure { background: var(--bg-lighter); padding: 16px 0; text-align: center; font-size: 0.85rem; color: var(--text-light); }
.affiliate-disclosure i { color: var(--primary); margin-right: 8px; }

/* Legal Pages */
.legal-page { padding: 60px 0; max-width: 800px; margin: 0 auto; }
.legal-page h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: 32px 0 12px; }
.legal-page p { color: var(--text-light); margin-bottom: 16px; font-size: 1.05rem; }
.legal-page ul { margin-bottom: 20px; padding-left: 20px; }
.legal-page li { color: var(--text-light); margin-bottom: 8px; font-size: 1.05rem; }

/* Product Review Page */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 60px 0; align-items: start; }
.product-detail-image { height: 400px; background: var(--bg-lighter); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 6rem; color: var(--primary); opacity: 0.3; }
.product-detail-info h1 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 12px; }
.product-detail-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.product-detail-rating span { color: var(--text-light); }
.overview { color: var(--text-light); font-size: 1.05rem; margin-bottom: 24px; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.pros, .cons { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.pros { border-left: 4px solid var(--primary); }
.cons { border-left: 4px solid #ef4444; }
.pros h4, .cons h4 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.pros h4 { color: var(--primary); }
.cons h4 { color: #ef4444; }
.pros ul, .cons ul { list-style: none; }
.pros li, .cons li { padding: 8px 0; color: var(--text-light); font-size: 0.95rem; border-bottom: 1px solid var(--bg-lighter); }

.product-specs { margin: 32px 0; }
.product-specs h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 16px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 12px 16px; font-size: 0.95rem; }
.specs-table td:first-child { font-weight: 600; width: 40%; color: var(--text); }
.specs-table td:last-child { color: var(--text-light); }

.cta-box { background: linear-gradient(135deg, #f0fdf4, var(--primary-light)); border: 2px solid var(--primary); border-radius: var(--radius); padding: 32px; text-align: center; margin: 32px 0; }
.cta-box h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 12px; }
.cta-box p { color: var(--text-light); margin-bottom: 20px; }

/* About Content */
.about-content { padding: 60px 0; }

/* Contact Page */
.contact-page { padding: 60px 0; }

/* Blog Page */
.blog-page { padding: 60px 0; }

/* Reviews Page */
.reviews-page { padding: 60px 0; }

/* Post Content */
.post-content { padding: 60px 0; }
.post-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.post-main h1 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 16px; line-height: 1.3; }
.post-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); color: var(--text-light); font-size: 0.9rem; }
.post-meta i { margin-right: 4px; color: var(--primary); }
.post-main p { color: var(--text-light); line-height: 1.9; margin-bottom: 20px; font-size: 1.05rem; }
.post-main h2 { font-family: var(--font-heading); font-size: 1.6rem; margin: 40px 0 16px; }
.post-main h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.post-tip { background: #f0fdf4; border-left: 4px solid var(--primary); padding: 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; }
.post-tip h4 { color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.post-tip p { color: var(--text); margin-bottom: 0; }
.post-product-box { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 2px solid var(--secondary); border-radius: var(--radius); padding: 24px; margin: 32px 0; }
.post-product-box h3 { margin-bottom: 12px; }
.post-product-box p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }

/* Related Products */
.related-products { padding: 60px 0; background: var(--bg-light); }

/* WordPress Default Styles Override */
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.gallery-columns-3 .gallery-item { width: 33.33%; float: left; }
.bypostauthor { background: var(--primary-light); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsive */
@media (max-width: 1024px) {
    .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .product-detail-image { height: 300px; }
}

@media (max-width: 768px) {
    .nav-list { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow-md); border-top: 1px solid var(--border); }
    .nav-list.active { display: flex; }
    .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
    .menu-toggle { display: flex; }
    .header-inner { position: relative; }
    .hero-section { height: 400px; }
    .hero-content h1 { font-size: 2rem; }
    .category-grid, .product-grid, .values-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .blog-list, .review-list, .post-layout, .contact-grid { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.8rem; }
    .blog-article { flex-direction: column; }
    .blog-article-image { width: 100%; min-height: 150px; }
    .newsletter-form { flex-direction: column; }
    .review-card-header { flex-direction: column; }
    .review-image { width: 100%; height: 150px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-section { height: 350px; }
    .hero-content h1 { font-size: 1.6rem; }
    .section { padding: 48px 0; }
    .section-header h2 { font-size: 1.5rem; }
}
