/* ============================================================
   HOMEPAGE + ARCHIVE STYLES — v4.0.0
   Append to existing style.css
   ============================================================ */

/* ═══════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════ */

.fp-container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.fp-section { padding: 40px 0; }
.fp-section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.fp-section-title { font-size: 1.3rem; font-weight: 800; color: var(--lh-text-primary,#1a1a1a); margin: 0; }
.fp-section-link { font-size: 0.82rem; font-weight: 600; color: var(--lh-text-primary,#1a1a1a); text-decoration: none; border-bottom: 2px solid currentColor; }

/* Hero */
.fp-hero { background: #1a1a1a; color: #fff; padding: 48px 0 40px; }
.fp-hero-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.fp-hero-title { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 12px; color: #fff; }
.fp-hero-sub { font-size: 0.95rem; color: rgba(255,255,255,0.55); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.fp-hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fp-cta { display: inline-flex; align-items: center; padding: 12px 24px; font-size: 0.92rem; font-weight: 700; border-radius: 8px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.fp-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.fp-cta-primary { background: #fff; color: #1a1a1a; }
.fp-cta-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.fp-hero-stats { display: flex; gap: 32px; justify-content: center; margin-top: 28px; }
.fp-hero-stats div { text-align: center; }
.fp-hero-stats strong { display: block; font-size: 1.3rem; color: #fff; }
.fp-hero-stats span { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* Category Grid */
.fp-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .fp-cat-grid { grid-template-columns: repeat(4, 1fr); } }
.fp-cat-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; background: var(--lh-bg-surface,#f7f7f7); border: 1px solid var(--lh-border,#e5e5e5); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; text-align: center; }
.fp-cat-card:hover { border-color: var(--lh-text-primary,#1a1a1a); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.fp-cat-icon { font-size: 1.6rem; }
.fp-cat-name { font-size: 0.85rem; font-weight: 700; color: var(--lh-text-primary,#1a1a1a); }
.fp-cat-count { font-size: 0.72rem; color: var(--lh-text-muted,#999); }

/* Product Grid (shared: homepage + archive) */
.fp-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .fp-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .fp-product-grid { grid-template-columns: repeat(4, 1fr); } }

.fp-product-card { background: #fff; border: 1px solid var(--lh-border,#e5e5e5); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; }
.fp-product-card:hover { border-color: var(--lh-text-primary,#1a1a1a); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.fp-product-img { aspect-ratio: 1/1; background: var(--lh-bg-surface,#f7f7f7); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.fp-product-img img { width: 100%; height: 100%; object-fit: cover; }
.fp-product-placeholder { font-size: 2.5rem; opacity: 0.2; }
.fp-product-badge { position: absolute; top: 8px; left: 8px; background: var(--lh-text-primary,#1a1a1a); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; }
.fp-product-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.fp-product-cat { font-size: 0.65rem; font-weight: 600; color: var(--lh-text-muted,#999); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.fp-product-name { font-size: 0.82rem; font-weight: 600; line-height: 1.3; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--lh-text-primary,#1a1a1a); }
.fp-product-rating { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--lh-text-muted,#999); margin-bottom: 6px; }
.fp-product-rating .fp-stars { color: #F59E0B; display: flex; }
.fp-product-reviews { color: var(--lh-text-muted,#999); }
.fp-product-price { font-size: 1rem; font-weight: 800; color: var(--lh-text-primary,#1a1a1a); margin-top: auto; }

/* ═══════════════════════════════════
   ARCHIVE / CATEGORY
   ═══════════════════════════════════ */

.lh-archive-header { margin-bottom: 16px; }
.lh-archive-header h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; }
.lh-archive-meta { font-size: 0.82rem; color: var(--lh-text-muted,#999); margin: 0; }

/* Sub-categories */
.lh-subcats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.lh-subcat-pill { display: inline-block; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--lh-border,#e5e5e5); background: #fff; color: var(--lh-text-muted,#666); font-size: 0.78rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: all 0.15s; }
.lh-subcat-pill:hover { border-color: var(--lh-text-primary,#1a1a1a); color: var(--lh-text-primary,#1a1a1a); }
.lh-subcat-pill.active { background: var(--lh-text-primary,#1a1a1a); color: #fff; border-color: var(--lh-text-primary,#1a1a1a); }
.lh-subcat-pill small { font-weight: 400; opacity: 0.7; margin-left: 2px; }

/* Filter Bar */
.lh-filter-bar { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .lh-filter-bar { flex-direction: row; justify-content: space-between; align-items: center; } }

.lh-price-pills, .lh-sort-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.lh-pill { display: inline-block; padding: 5px 12px; border-radius: 16px; border: 1px solid var(--lh-border,#e5e5e5); background: #fff; color: var(--lh-text-muted,#666); font-size: 0.72rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: all 0.15s; }
.lh-pill:hover { border-color: var(--lh-text-primary,#1a1a1a); color: var(--lh-text-primary,#1a1a1a); }
.lh-pill.active { background: var(--lh-text-primary,#1a1a1a); color: #fff; border-color: var(--lh-text-primary,#1a1a1a); }
.lh-pill-clear { color: #c0392b; border-color: #c0392b; }
.lh-pill-clear:hover { background: #c0392b; color: #fff; }

/* Archive Product Grid */
.lh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .lh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .lh-grid { grid-template-columns: repeat(4, 1fr); } }

.lh-card-wrap { }
.lh-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lh-border,#e5e5e5); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; height: 100%; }
.lh-card:hover { border-color: var(--lh-text-primary,#1a1a1a); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.lh-card-img { aspect-ratio: 4/3; background: var(--lh-bg-surface,#f7f7f7); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.lh-card-img img { width: 100%; height: 100%; object-fit: cover; }
.lh-card-placeholder { font-size: 2.5rem; opacity: 0.2; }
.lh-card-badge { position: absolute; top: 8px; left: 8px; background: var(--lh-text-primary,#1a1a1a); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.62rem; font-weight: 700; }
.lh-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.lh-card-cat { font-size: 0.65rem; font-weight: 600; color: var(--lh-text-muted,#999); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.lh-card-title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--lh-text-primary,#1a1a1a); }
.lh-card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.lh-card-rating { display: flex; align-items: center; gap: 3px; font-size: 0.72rem; color: var(--lh-text-muted,#999); }
.lh-card-rating .lh-stars { color: #F59E0B; display: flex; }
.lh-card-price { font-size: 1rem; font-weight: 800; color: var(--lh-text-primary,#1a1a1a); margin-top: auto; }
.lh-card-score { display: flex; align-items: center; gap: 3px; font-size: 0.75rem; font-weight: 700; color: #F59E0B; }
.lh-card-score svg { width: 14px; height: 14px; }

/* No results */
.lh-no-results { text-align: center; padding: 48px 20px; color: var(--lh-text-muted,#999); }
.lh-no-results h2 { color: var(--lh-text-primary,#1a1a1a); margin-bottom: 8px; }
.lh-no-results a { color: var(--lh-text-primary,#1a1a1a); font-weight: 600; }

/* Pagination */
.lh-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; padding: 16px 0; }
.lh-pagination a, .lh-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; text-decoration: none; border: 1px solid var(--lh-border,#e5e5e5); color: var(--lh-text-primary,#1a1a1a); transition: all 0.15s; }
.lh-pagination a:hover { background: var(--lh-text-primary,#1a1a1a); color: #fff; border-color: var(--lh-text-primary,#1a1a1a); }
.lh-pagination .current { background: var(--lh-text-primary,#1a1a1a); color: #fff; border-color: var(--lh-text-primary,#1a1a1a); }
