/*
Theme Name: BrightCart
Theme URI: http://localhost/affliateamazon
Author: BrightCart
Description: Editorial theme for an Amazon affiliate product journal. Posts published in WordPress appear automatically on the homepage and in their categories.
Version: 1.8.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: brightcart
*/

:root {
  --blue: #1a73e8;
  --blue-dark: #1558c0;
  --brand: #1a68b0;
  --ink: #1a1d23;
  --text: #4a5160;
  --muted: #7a8294;
  --paper: #f7f5fb;
  --line: rgba(26, 29, 35, 0.08);
  --shadow: 0 18px 50px rgba(40, 30, 80, 0.08);
  --radius: 22px;
  --font: Poppins, "Segoe UI", sans-serif;
  --heading: Figtree, Poppins, sans-serif;
  --mark: Montserrat, Poppins, sans-serif;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
html, body { border: 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    radial-gradient(520px 140px at 8% 0%, rgba(232, 180, 245, 0.55), transparent 70%),
    radial-gradient(480px 160px at 92% 0%, rgba(186, 170, 255, 0.45), transparent 72%),
    linear-gradient(180deg, #f3e9fb 0%, #f8f4fd 100%);
  border-bottom: 0;
}
.header-row, .wrap {
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo img {
  display: block;
  height: 42px;
  width: auto;
}
.footer-logo { display: inline-block; margin: 0 0 14px; }
.footer-logo img { display: block; height: 46px; width: auto; }
.brand-g {
  font-family: var(--mark);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-rule {
  width: 1.5px;
  height: 22px;
  background: var(--brand);
  opacity: 0.55;
}
.brand-word {
  font-family: var(--mark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cat-bar {
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 0 0 12px;
}
.cat-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  overflow: visible;
}
.cat-bar a {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.cat-bar a:hover, .cat-bar a[aria-current="page"] { color: var(--blue); }
.header-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form input[type="search"] {
  width: 210px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ink);
  white-space: nowrap;
}
.search-form button, .nav-toggle, .btn, .text-link { border: 0; cursor: pointer; }
.search-form button {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gc-hero {
  background:
    radial-gradient(circle at 78% 42%, rgba(232, 180, 245, 0.55), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(186, 170, 255, 0.45), transparent 36%),
    linear-gradient(180deg, #f6f1fb 0%, #fbf9fe 55%, #fff 100%);
  padding: 56px 0 36px;
}
.gc-hero-inner {
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.gc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(205, 218, 245, 0.75);
  color: #3b6fd4;
  font-family: var(--mark);
  font-size: 13px;
  font-weight: 600;
}
.gc-tag span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
}
.gc-tag i { width: 1px; height: 14px; background: #3b6fd4; opacity: 0.4; }
.gc-hero h1, .section-head h2, .page-head h1, .post-hero h1, .related h2, .gc-section h2 {
  font-family: var(--heading);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #090b0e;
  margin: 0;
}
.gc-hero h1 { font-family: var(--mark); font-size: clamp(40px, 5vw, 60px); line-height: 1.12; font-weight: 700; }
.gc-lead { color: #555; max-width: 38rem; font-size: 17px; }
.gc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.gc-visual {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin-left: auto;
  display: grid;
  place-items: center;
}
.gc-orb {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9) 0%, transparent 24%),
    radial-gradient(circle at 50% 50%, #efe6ff 0%, #e4d2fb 48%, #f7f0ff 74%, transparent 76%);
  display: grid;
  place-items: center;
}
.gc-badge {
  width: min(70%, 248px);
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(40, 30, 80, 0.1);
  padding: 12px 12px 16px;
  text-align: center;
  color: var(--ink);
}
.gc-badge img { width: 100%; height: 158px; object-fit: cover; border-radius: 18px; margin-bottom: 12px; }
.gc-badge strong { display: block; font-family: var(--heading); font-size: 16px; line-height: 1.35; font-weight: 700; }
.gc-chip {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(40, 30, 80, 0.1);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.gc-chip-one { top: 17%; left: -9%; }
.gc-chip-two { right: 2%; bottom: 18%; }
.gc-trust { background: #f3f4f8; padding: 18px 0; }
.gc-trust-inner {
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}
.gc-trust-inner a { color: var(--ink); }
.gc-trust-inner a:hover { color: var(--blue); }
.gc-section { padding: 64px 0; background: linear-gradient(180deg, #f7f2fc 0%, #fff 100%); }
.gc-center { text-align: center; }
.gc-center .gc-lead { margin: 10px auto 28px; }
.gc-section h2 { font-size: 44px; line-height: 1.15; }
.gc-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.gc-feature {
  position: relative;
  display: block;
  min-height: 230px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #fff;
  text-align: left;
}
.gc-feature:hover { transform: translateY(-3px); }
.gc-feature--pink { background: #f3d4e4; }
.gc-feature--purple { background: #ddd2f5; }
.gc-feature--yellow { background: #f0e4b8; }
.gc-feature--mint { background: #c8e9d6; }
.gc-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gc-feature-copy {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 18px 16px 16px;
  background: linear-gradient(transparent, rgba(18, 16, 28, 0.78));
}
.gc-feature strong { display: block; font-family: var(--heading); font-size: 22px; color: #fff; }
.gc-feature-copy span { color: rgba(255, 255, 255, 0.86); font-size: 14px; }

.section { padding: 36px 0 10px; }
.section-head { margin-bottom: 18px; }
.section-head h2, .related h2 { font-size: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-3px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper); }
.card-media img, .card-fallback { width: 100%; height: 100%; object-fit: cover; }
.card-fallback { display: block; background: linear-gradient(160deg, #e7d8ff, #f3d4e4); }
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta, .card-foot, .post-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cat-link { color: var(--blue); font-size: 13px; font-weight: 600; }
.card h3 { font-family: var(--heading); font-size: 22px; line-height: 1.25; margin: 0; }
.excerpt, .archive-desc { color: var(--text); margin: 0; }
.excerpt { flex: 1; }
.price { font-weight: 650; }
.text-link { background: none; color: var(--blue); font-weight: 600; padding: 0; }
.stars { display: inline-flex; gap: 1px; align-items: center; color: #d5d8e0; font-size: 14px; }
.star.is-full { color: #f5b942; }
.star.is-half {
  background: linear-gradient(90deg, #f5b942 50%, #d5d8e0 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.star-num { color: var(--muted); margin-left: 6px; font-size: 13px; font-weight: 600; }

.page-head, .post-hero { padding: 42px 0 12px; max-width: 820px; }
.page-head h1, .post-hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.1; }
.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.post-hero .kicker a { color: var(--blue); }
.post-figure { margin: 18px 0 8px; border-radius: 28px; overflow: hidden; }
.post-figure img { width: 100%; max-height: 620px; object-fit: cover; }
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
  padding-bottom: 20px;
}
.entry { font-size: 17px; color: var(--text); }
.entry h2 { font-family: var(--heading); color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.panel { border-radius: 18px; padding: 16px 18px; }
.panel h2 { margin: 0 0 8px; font-size: 18px; font-family: var(--heading); }
.panel ul { margin: 0; padding-left: 18px; }
.panel.pros { background: #e3f4ea; }
.panel.cons { background: #f8e4ef; }
.buybox {
  position: sticky;
  top: 108px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.buybox .price { font-family: var(--heading); font-size: 40px; display: block; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(26, 115, 232, 0.28);
}
.buybox .btn { width: 100%; margin-top: 12px; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  box-shadow: none;
}
.btn-outline:hover { background: #f3f7ff; color: var(--blue); }
.pin-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #e60023;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.pin-link:hover { background: #ad081b; color: #fff; }
.fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.related { padding: 10px 0 40px; }
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; padding: 28px 0 40px; }
.page-numbers {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}
.page-numbers.current { background: var(--blue); color: #fff; }

.site-footer { background: #d7efe2; margin-top: 28px; padding: 48px 0 22px; color: #243028; }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(360px, 1.6fr) minmax(180px, 0.8fr); gap: 32px; align-items: start; }
.site-footer h2 { font-family: var(--heading); margin: 0 0 12px; color: #121714; font-size: 22px; }
.site-footer p { margin: 0; line-height: 1.55; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.site-footer li { margin: 0; }
.site-footer li a { white-space: nowrap; color: #243028; }
.site-footer a:hover { color: var(--blue); }
.footer-note { border-top: 1px solid rgba(26, 29, 35, 0.12); margin-top: 28px; padding-top: 16px; color: #3c4a42; font-size: 14px; line-height: 1.6; }
.empty { padding: 30px 0 60px; color: var(--text); }

@media (max-width: 980px) {
  .gc-hero-inner, .post-layout, .footer-grid, .split { grid-template-columns: 1fr; }
  .footer-grid > * { min-width: 0; }
  .site-footer li a { white-space: normal; }
  .gc-features, .card-grid { grid-template-columns: 1fr 1fr; }
  .buybox { position: static; }
  .header-row { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .logo img { height: 32px; }
  .footer-logo img { height: 33px; }
  #header-search, .cat-bar { display: none; }
  body.nav-open .header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 14px;
    padding-top: 18px;
  }
  body.nav-open .header-tools { display: contents; }
  body.nav-open .logo { grid-column: 1; grid-row: 1; }
  body.nav-open .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 32px;
    height: 32px;
    gap: 4px;
    border-radius: 8px;
  }
  body.nav-open .nav-toggle span { width: 14px; }
  body.nav-open #header-search { display: block; grid-column: 1 / -1; grid-row: 2; width: 100%; }
  body.nav-open .cat-bar { display: block; width: 100%; padding: 22px; }
  body.nav-open .cat-bar-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .gc-features, .card-grid { grid-template-columns: 1fr; }
  .gc-visual { width: min(100%, 300px); margin: 52px auto 48px; }
  .gc-badge { width: 100%; padding: 10px 10px 12px; }
  .gc-badge img { height: 184px; margin-bottom: 8px; }
  .gc-badge strong { font-size: 14px; }
  .gc-chip { padding: 6px 10px; font-size: 12px; }
  .gc-chip-one { top: -10%; left: 0; }
  .gc-chip-two { right: 0; bottom: -10%; }
  .site-footer { padding: 32px 0 18px; }
  .footer-grid { gap: 22px; }
  .footer-cats { grid-template-columns: 1fr; gap: 8px 0; }
  .footer-note { margin-top: 20px; }
  .search-form { width: 100%; }
  .search-form input[type="search"] { flex: 1 1 auto; width: auto; min-width: 0; }
  .gc-section h2, .section-head h2 { font-size: 32px; }
}
