
:root {
  --primary: #0f172a; --primary-hover: #1e293b;
  --accent: #2563eb; --accent-hover: #1d4ed8;
  --bg-main: #f8fafc; --bg-card: #ffffff;
  --text-main: #0f172a; --text-muted: #64748b;
  --border: #e2e8f0; --success: #16a34a; --warning: #ea580c; --danger: #dc2626;
  --amazon: #f59e0b; --meesho: #ec4899;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.top-bar { background: var(--primary); color: #fff; font-size: 0.8rem; text-align: center; padding: 6px; font-weight: 500; }
.navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; padding: 12px 0; }
.nav-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.logo span { color: var(--accent); }
.search-box { flex: 1; max-width: 500px; position: relative; }
.search-box input { width: 100%; padding: 10px 16px 10px 40px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg-main); font-size: 0.9rem; transition: all 0.2s; }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); background: #fff; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 18px; }

/* Hero */
.hero { text-align: center; padding: 40px 0 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Grids & Cards */
.filters { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; margin-bottom: 20px; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.filters::-webkit-scrollbar { display: none; }
.filter-btn { padding: 8px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--border); font-weight: 600; font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; transition: 0.2s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-bottom: 60px; }
.card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: 0.2s; display: flex; flex-direction: column; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.card-img { width: 100%; height: 220px; object-fit: cover; background: var(--bg-main); }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 0.75rem; color: var(--accent); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--primary); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.star { color: #f59e0b; }
.card-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 16px; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.original-price { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.btn-buy { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; border-radius: 8px; font-weight: 700; transition: 0.2s; color: var(--primary); background: #f1f5f9; border: 1px solid var(--border); }
.btn-buy:hover { background: #e2e8f0; }

/* Product Detail Page (PDP) */
.pdp-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 40px auto 60px; }
.pdp-image-wrapper { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; text-align: center; }
.pdp-main-img { max-height: 400px; margin: 0 auto; border-radius: 8px; }
.pdp-details h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 12px; color: var(--primary); }
.pdp-meta { display: flex; gap: 16px; margin-bottom: 20px; font-size: 0.9rem; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.pdp-price-box { margin-bottom: 24px; }
.pdp-price { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.pdp-original { font-size: 1.2rem; color: var(--text-muted); text-decoration: line-through; margin-left: 10px; }
.pdp-discount { background: var(--danger); color: #fff; padding: 4px 8px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; vertical-align: middle; margin-left: 10px; }
.pdp-desc { font-size: 1.05rem; line-height: 1.6; margin-bottom: 24px; }
.pdp-specs { background: var(--bg-main); border: 1px solid var(--border); padding: 16px; border-radius: 8px; margin-bottom: 24px; }
.pdp-specs h3 { font-size: 1rem; margin-bottom: 10px; }
.pdp-specs ul { list-style-type: disc; padding-left: 20px; color: var(--text-muted); font-size: 0.95rem; }
.pdp-specs li { margin-bottom: 6px; }
.affiliate-btn-large { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; font-size: 1.1rem; font-weight: 700; border-radius: 8px; color: #111; background: var(--amazon); transition: 0.2s; border: 1px solid #d97706; }
.affiliate-btn-large:hover { filter: brightness(0.95); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.disclaimer-box { background: #eff6ff; border-left: 4px solid var(--accent); padding: 12px; font-size: 0.8rem; color: var(--text-muted); margin-top: 24px; border-radius: 4px; }

/* Static Pages */
.static-page { max-width: 800px; margin: 40px auto 80px; background: #fff; padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.static-page h1 { font-size: 2.2rem; margin-bottom: 20px; color: var(--primary); }
.static-page h2 { font-size: 1.5rem; margin: 30px 0 16px; color: var(--primary); }
.static-page p { margin-bottom: 16px; color: var(--text-main); }
.static-page ul { margin-bottom: 16px; padding-left: 20px; }
.static-page li { margin-bottom: 8px; }

/* Footer */
footer { background: var(--primary); color: #94a3b8; padding: 60px 0 40px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { transition: 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 24px; font-size: 0.85rem; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .pdp-container { grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
  .pdp-price { font-size: 2rem; }
  .nav-flex { flex-direction: column; align-items: stretch; }
  .static-page { padding: 24px; margin: 20px; }
}
