* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: #1a1a1a; line-height: 1.5; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; border-bottom: 1px solid #eee; }
.brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: #1a1a1a; }
main { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.hero { text-align: center; padding: 3rem 1rem; }
.affiliate-disclosure { font-size: 0.85rem; color: #666; background: #f7f7f7; padding: 0.75rem 1rem; border-radius: 6px; }
.site-footer { text-align: center; padding: 2rem; color: #888; font-size: 0.85rem; border-top: 1px solid #eee; margin-top: 3rem; }

.card-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.card-grid li { border: 1px solid #eee; border-radius: 8px; padding: 1rem; }
.card-grid a { text-decoration: none; color: #1a1a1a; }
.breadcrumb a { color: #666; font-size: 0.9rem; }
.pagination { margin-top: 1.5rem; display: flex; gap: 0.5rem; }
.pagination a, .pagination strong { padding: 0.25rem 0.6rem; border: 1px solid #eee; border-radius: 4px; }

/* Product cards (home/category/search/collection/related) */
.product-cards li { padding: 0; overflow: hidden; }
.product-cards a { display: block; }
.card-image { width: 100%; height: 160px; object-fit: contain; background: #fafafa; display: block; }
.card-image-placeholder { display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 0.8rem; }
.card-title { padding: 0.5rem 0.75rem 0; margin: 0; font-size: 0.95rem; }
.card-price { padding: 0 0.75rem 0.75rem; margin: 0.25rem 0 0; font-weight: 600; color: #0a7a3c; }

/* Product detail page — Google Shopping style comparison layout */
.product-top { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1rem; }
.product-gallery { flex: 1 1 320px; max-width: 380px; }
.gallery-main { width: 100%; max-height: 420px; object-fit: contain; background: #fafafa; border-radius: 8px; }
.gallery-placeholder { display: flex; align-items: center; justify-content: center; height: 320px; color: #ccc; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.gallery-thumb { width: 60px; height: 60px; object-fit: contain; background: #fafafa; border: 1px solid #eee; border-radius: 4px; cursor: pointer; }
.gallery-thumb:hover { border-color: #999; }

.product-summary { flex: 2 1 420px; }
.product-summary h1 { margin-top: 0; margin-bottom: 0.25rem; }
.product-summary .summary { color: #444; }

.price-box { background: #f7fdf9; border: 1px solid #d4f0dd; border-radius: 8px; padding: 1.25rem; margin-top: 1rem; }
.price-from { display: flex; align-items: baseline; gap: 0.5rem; }
.price-label { color: #666; font-size: 0.9rem; }
.price-amount { font-size: 1.75rem; font-weight: 700; color: #0a7a3c; }
.offer-count { color: #666; font-size: 0.9rem; margin: 0.25rem 0 1rem; }

.btn-primary, .btn-secondary {
    display: inline-block; text-decoration: none; padding: 0.6rem 1.1rem; border-radius: 6px;
    font-weight: 600; font-size: 0.9rem;
}
.btn-primary { background: #0a7a3c; color: #fff; }
.btn-primary:hover { background: #086330; }
.btn-secondary { background: #fff; color: #1a1a1a; border: 1px solid #ccc; }
.btn-secondary:hover { border-color: #888; }

.offers-section, .specs-section, .description-section, .related-section { margin-top: 2.5rem; }
.offers-table { width: 100%; border-collapse: collapse; }
.offers-table th { text-align: left; font-size: 0.8rem; color: #666; text-transform: uppercase; padding: 0.5rem 0.75rem; border-bottom: 2px solid #eee; }
.offers-table td { padding: 0.75rem; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.offers-table tr.offer-best { background: #f7fdf9; }

.store-badge { font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.85rem; }
.store-amazon { background: #fff3cd; color: #8a6300; }
.store-flipkart { background: #e0edff; color: #1a56b0; }
.store-meesho { background: #ffe0ea; color: #a5134f; }
.store-myntra { background: #ffe8e0; color: #b3401a; }
.store-other { background: #eee; color: #444; }
.badge-lowest { display: inline-block; margin-left: 0.5rem; font-size: 0.7rem; background: #0a7a3c; color: #fff; padding: 0.1rem 0.4rem; border-radius: 4px; vertical-align: middle; }

.offer-price { font-weight: 700; font-size: 1.05rem; }
.offer-mrp { text-decoration: line-through; color: #999; margin-left: 0.5rem; font-size: 0.85rem; }
.offer-discount { color: #c0392b; font-size: 0.8rem; margin-left: 0.4rem; font-weight: 600; }

.badge-instock { color: #0a7a3c; font-size: 0.85rem; }
.badge-outofstock { color: #a00; font-size: 0.85rem; }
.badge-unknown { color: #888; font-size: 0.85rem; }

.specs-table { width: 100%; border-collapse: collapse; max-width: 500px; }
.specs-table th { text-align: left; width: 140px; color: #666; font-weight: 600; padding: 0.5rem 0.75rem 0.5rem 0; vertical-align: top; }
.specs-table td { padding: 0.5rem 0; }
.specs-table tr { border-bottom: 1px solid #f0f0f0; }

@media (max-width: 600px) {
    .product-top { flex-direction: column; }
    .product-gallery { max-width: 100%; }
}
