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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

.site-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.site-header p {
    font-size: 1rem;
    opacity: 0.85;
}

.result-info {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-size: 0.95rem;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 1rem;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-brand {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2575fc;
    margin-bottom: 0.25rem;
}

.product-shipping {
    font-size: 0.8rem;
    color: #4caf50;
    margin-bottom: 0.75rem;
}

.product-merchant {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.product-merchant img {
    height: 20px;
    width: auto;
}

.product-merchant span {
    font-size: 0.8rem;
    color: #666;
}

.product-availability {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.product-availability.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.product-availability.unavailable {
    background: #ffebee;
    color: #c62828;
}

.product-cta {
    margin-top: auto;
}

.btn-shop {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.btn-shop:hover {
    opacity: 0.9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination a {
    background: #2575fc;
    color: #fff;
    transition: background 0.2s;
}

.pagination a:hover {
    background: #1a5fd1;
}

.pagination .current-page {
    color: #666;
    font-weight: 400;
}

.pagination .disabled {
    background: #ddd;
    color: #999;
    pointer-events: none;
}

/* Error */
.error-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #c62828;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 0.75rem;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
}

.footer-links {
    margin-bottom: 0.5rem;
}

.footer-powered {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
}

/* SEO Content - Intro */
.seo-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.seo-intro h2 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.seo-intro p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

/* SEO Content - Between product rows (inside grid) */
.seo-text-block {
    grid-column: 1 / -1;
    background: #f9f9ff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    border-left: 4px solid #6a11cb;
}

.seo-text-block h3 {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.seo-text-block p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.seo-text-block p:last-child {
    margin-bottom: 0;
}

/* SEO Content - Below products */
.seo-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 2rem;
}

.seo-bottom-content .seo-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.seo-bottom-content h3 {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.seo-bottom-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.seo-bottom-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .site-header h1 {
        font-size: 1.5rem;
    }

    .product-image {
        height: 180px;
    }
}
