/* ═══════════════════════════════════════
   PRODUCTMETA.IO — GLOBAL STYLESHEET
   Associate Tag: metrupa-20
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --white:        #ffffff;
  --bg:           #f8f9fa;
  --border:       #e9ecef;
  --text:         #1a1a2e;
  --muted:        #6c757d;
  --green:        #16a34a;
  --green-dark:   #15803d;
  --green-light:  #dcfce7;
  --purple:       #7c3aed;
  --purple-light: #f3e8ff;
  --yellow-bg:    #fffde7;
  --yellow-border:#f0e68c;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 2px 16px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.10);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── HEADER ── */
.pm-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.pm-header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 20px; height: 60px;
  display: flex; align-items: center; gap: 16px;
}
.pm-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 800; color: var(--text);
  flex-shrink: 0;
}
.pm-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: white;
  box-shadow: 0 2px 8px rgba(34,197,94,0.35);
  flex-shrink: 0;
}
.pm-logo em { font-style: normal; color: var(--green); }

.pm-nav { display: flex; gap: 2px; list-style: none; }
.pm-nav a {
  padding: 6px 11px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: all .15s; white-space: nowrap;
}
.pm-nav a:hover, .pm-nav a.active { background: var(--bg); color: var(--text); }

.pm-search {
  margin-left: auto;
  display: flex; align-items: center;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .15s;
}
.pm-search:focus-within { border-color: var(--green); }
.pm-search input {
  border: none; background: transparent;
  padding: 8px 14px; font-size: 13px; width: 200px; outline: none;
}
.pm-search button {
  background: var(--green); color: white;
  border: none; padding: 8px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.pm-search button:hover { background: var(--green-dark); }

.pm-menu-toggle {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; padding: 4px; color: var(--text);
}

/* ── MOBILE NAV ── */
.pm-mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  flex-direction: column; gap: 4px;
}
.pm-mobile-nav a {
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text);
  display: block;
}
.pm-mobile-nav a:hover { background: var(--bg); }
.pm-mobile-nav.open { display: flex; }

/* ── BREADCRUMB ── */
.pm-breadcrumb {
  max-width: 1100px; margin: 0 auto;
  padding: 12px 20px; font-size: 12px; color: var(--muted);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.pm-breadcrumb a { color: var(--green); }
.pm-breadcrumb a:hover { text-decoration: underline; }

/* ── PAGE HERO ── */
.pm-hero {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: white; text-align: center; padding: 40px 20px 36px;
}
.pm-hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
  margin-bottom: 14px;
}
.pm-hero h1 {
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 800; line-height: 1.2; margin-bottom: 10px;
}
.pm-hero p { opacity: .85; font-size: 14px; max-width: 560px; margin: 0 auto; }

/* ── MAIN WRAP ── */
.pm-main { max-width: 1100px; margin: 0 auto; padding: 20px 20px 56px; }

/* ── DISCLOSURE ── */
.pm-disclosure {
  background: var(--green-light); border: 1px solid #86efac;
  border-radius: var(--radius-sm); padding: 10px 16px;
  font-size: 12px; color: #166534; margin-bottom: 20px;
}

/* ── SECTION INTRO ── */
.pm-section-intro {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px;
  margin-bottom: 20px; box-shadow: var(--shadow);
}
.pm-section-intro h2 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.pm-section-intro p { font-size: 13px; color: var(--muted); }

/* ── PRODUCT CARD ── */
.pm-product-card {
  background: var(--yellow-bg);
  border: 1px solid var(--yellow-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 160px 1fr 150px;
  gap: 18px;
  align-items: start;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.pm-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pm-rank {
  position: absolute; top: -1px; left: -1px;
  background: var(--green); color: white;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 4px 10px; border-radius: var(--radius) 0 var(--radius-sm) 0;
}

/* Image */
.pm-img-col { display: flex; flex-direction: column; gap: 8px; }
.pm-img-wrap {
  background: white; border-radius: 10px;
  border: 1px solid var(--border);
  aspect-ratio: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pm-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pm-img-placeholder { font-size: 52px; }

/* Middle */
.pm-mid { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }

.pm-name-box {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; text-align: center;
}
.pm-name-box h3 { font-size: 14px; font-weight: 700; line-height: 1.3; }

.pm-stars { color: #f59e0b; font-size: 15px; letter-spacing: 1px; }
.pm-stars-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
}

.pm-aff-group { display: flex; flex-direction: column; gap: 7px; }

.pm-features { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pm-features li {
  font-size: 12px; color: var(--muted);
  display: flex; gap: 6px; align-items: flex-start;
}
.pm-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Right / Coupon */
.pm-coupon-col { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.pm-coupon-label {
  font-size: 11px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.pm-coupon-badge {
  background: var(--purple); color: white;
  border-radius: var(--radius-sm); padding: 11px 14px;
  text-align: center; font-weight: 800; font-size: 15px;
  letter-spacing: .06em; cursor: pointer; transition: background .15s;
  user-select: none;
}
.pm-coupon-badge:hover { background: #6d28d9; }
.pm-coupon-sub { font-size: 10px; font-weight: 400; opacity: .75; margin-top: 3px; }
.pm-coupon-badge.copied { background: var(--green); }

.pm-deal-tag {
  background: #fff3cd; border: 1px solid #fde047;
  border-radius: 6px; padding: 8px 12px;
  font-size: 12px; font-weight: 600; color: #854d0e; text-align: center;
}

/* ── AFFILIATE BUTTONS ── */
.pm-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; cursor: pointer;
  border: none; transition: opacity .15s, transform .1s;
  width: 100%;
}
.pm-btn:hover { opacity: .85; transform: scale(1.01); }
.pm-btn.amazon  { background: #ff9900; color: #111; }
.pm-btn.walmart { background: #0071ce; color: white; }
.pm-btn.bestbuy { background: #003087; color: white; }
.pm-btn.ebay    { background: #e53238; color: white; }
.pm-btn.target  { background: #cc0000; color: white; }
.pm-btn.newegg  { background: #e45c00; color: white; }

/* ── CATEGORY GRID ── */
.pm-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px,1fr));
  gap: 12px; margin-bottom: 32px;
}
.pm-cat-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 12px;
  text-align: center; cursor: pointer; transition: all .15s;
}
.pm-cat-card:hover { border-color: var(--green); background: var(--green-light); }
.pm-cat-icon { font-size: 28px; margin-bottom: 8px; }
.pm-cat-name { font-size: 13px; font-weight: 600; }
.pm-cat-count { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ── SECTION HEADING ── */
.pm-section-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.pm-section-head h2 { font-size: 17px; font-weight: 700; }
.pm-see-all {
  margin-left: auto; font-size: 13px; color: var(--green); font-weight: 600;
}
.pm-see-all:hover { text-decoration: underline; }

/* ── ARTICLE CARD (for homepage listings) ── */
.pm-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 16px; margin-bottom: 32px;
}
.pm-article-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .15s;
}
.pm-article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pm-article-thumb {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  height: 140px; display: flex; align-items: center;
  justify-content: center; font-size: 52px;
}
.pm-article-body { padding: 16px; }
.pm-article-tag {
  display: inline-block; background: var(--green-light); color: var(--green);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px;
}
.pm-article-body h3 { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.pm-article-body p { font-size: 12px; color: var(--muted); }
.pm-article-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.pm-read-more { color: var(--green); font-weight: 600; }

/* ── FOOTER ── */
.pm-footer {
  background: var(--text); color: #999;
  padding: 40px 20px 20px; margin-top: 40px;
}
.pm-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px; margin-bottom: 28px;
}
.pm-footer-brand .pm-logo { color: white; margin-bottom: 12px; }
.pm-footer-brand p { font-size: 12px; line-height: 1.7; color: #888; }
.pm-footer-col h4 { color: white; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.pm-footer-col ul { list-style: none; }
.pm-footer-col li { margin-bottom: 7px; }
.pm-footer-col a { font-size: 12px; color: #888; transition: color .15s; }
.pm-footer-col a:hover { color: white; }
.pm-footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid #2d2d2d; padding-top: 16px;
  display: flex; justify-content: space-between;
  font-size: 11px; flex-wrap: wrap; gap: 8px; color: #666;
}

/* ── UTILITIES ── */
.pm-tag {
  display: inline-block; padding: 3px 9px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.pm-tag.gold    { background: #fff3cd; color: #856404; }
.pm-tag.green   { background: var(--green-light); color: var(--green-dark); }
.pm-tag.purple  { background: var(--purple-light); color: var(--purple); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .pm-nav { display: none; }
  .pm-search { display: none; }
  .pm-menu-toggle { display: block; margin-left: auto; }

  .pm-product-card {
    grid-template-columns: 1fr;
  }
  .pm-img-wrap { max-width: 140px; margin: 0 auto; }
  .pm-coupon-col { flex-direction: row; flex-wrap: wrap; }
  .pm-coupon-badge { flex: 1; min-width: 120px; }
  .pm-deal-tag { flex: 1; min-width: 100px; }

  .pm-footer-inner { grid-template-columns: 1fr 1fr; }
  .pm-footer-brand { grid-column: 1 / -1; }

  .pm-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .pm-article-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pm-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-footer-inner { grid-template-columns: 1fr; }
  .pm-hero h1 { font-size: 20px; }
}
