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

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-primary: #e47911;
    --color-primary-hover: #c76a0e;
    --color-border: #e0e0e0;
    --color-green: #067d06;
    --color-red: #b12704;
    --max-width: 1100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Header / Nav */
header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
}

header nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    flex-wrap: wrap;
}

header nav ul a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

header nav ul a:hover {
    color: var(--color-primary);
}

.api-link {
    font-family: monospace;
    background: #f0f0f0;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

/* Main */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero */
.hero {
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--color-text-muted);
}

.agent-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: #f5f5f5;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border-left: 3px solid var(--color-primary);
}

.agent-note a {
    font-family: monospace;
    color: var(--color-primary);
}

/* Category grid */
.categories {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.25rem;
}

.category-card h3 {
    margin-bottom: 0.4rem;
}

.category-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.category-card h3 a:hover {
    color: var(--color-primary);
}

.product-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

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

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.25rem;
}

.product-card h2,
.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-card h2 a,
.product-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.product-card h2 a:hover,
.product-card h3 a:hover {
    color: var(--color-primary);
}

/* Product meta */
.product-meta {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

/* Pros / Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li::before {
    content: "+ ";
    color: var(--color-green);
    font-weight: 700;
}

.cons li::before {
    content: "- ";
    color: var(--color-red);
    font-weight: 700;
}

.pros li, .cons li {
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

ul.pros {
    list-style: none;
}

ul.pros li::before {
    content: "+ ";
    color: var(--color-green);
    font-weight: 700;
}

/* Buy button */
.buy-button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.75rem;
}

.buy-button:hover {
    background: var(--color-primary-hover);
}

/* Product detail */
.product-detail {
    max-width: 800px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.description {
    margin: 1rem 0;
    white-space: pre-line;
}

.tags {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 1rem 0 0.5rem;
}

.last-verified {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* Guide grid */
.guides {
    margin-bottom: 2.5rem;
}

.section-intro {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.guide-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.25rem;
    border-left: 3px solid var(--color-primary);
}

.guide-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.guide-card h3 a:hover {
    color: var(--color-primary);
}

/* Guide detail */
.guide-detail {
    max-width: 900px;
}

.guide-intro {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Comparison table */
.comparison-table-section {
    margin: 2rem 0;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

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

.comparison-table th {
    background: #f5f5f5;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table td a {
    color: var(--color-primary);
    text-decoration: none;
}

.comparison-table td a:hover {
    text-decoration: underline;
}

/* Guide product reviews */
.detailed-reviews {
    margin: 2rem 0;
}

.guide-product {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.guide-product h3 {
    margin-bottom: 0.75rem;
}

.guide-product h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.guide-product h3 a:hover {
    color: var(--color-primary);
}

/* FAQ section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Brand */
.brand {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    max-width: var(--max-width);
    margin: 3rem auto 0;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.affiliate-disclosure {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
}
