/* ============================================================
   Dave, the AI Guy — Store page styles
   Builds on site.css tokens (--red, --blue-light, --line, etc.)
   ============================================================ */

/* Trust bar under the hero */
.trust-bar{
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px,100%), 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,28,32,0.7), rgba(14,14,16,0.75));
}
.trust{
  display: flex; align-items: center; gap: 12px;
  padding: 4px 6px;
}
.trust svg{
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--blue-light);
}
.trust span{ display: flex; flex-direction: column; line-height: 1.25; }
.trust strong{
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -.005em;
}
.trust small{
  display: block;
  margin-top: 2px;
  font-size: .76rem;
  color: #fff; opacity: .75;
}

/* ===== STORE GRID ====================================== */
.store-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px,100%), 1fr));
  gap: 24px;
}
@media (min-width: 980px){
  .store-grid{ grid-template-columns: repeat(2, 1fr); }
  /* Tall product (Claude Skills) spans 2 grid rows so its short
     neighbors (Policy + Workflow) stack vertically beside it. */
  .store-grid .store-card[data-product-id="claude-skills-bundle"]{
    grid-row: span 2;
  }
}

.store-card{
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28,28,32,0.85), rgba(14,14,16,0.88));
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
}
.store-card::before{
  content:""; position: absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.store-card:hover{
  transform: translateY(-3px);
  border-color: rgba(200,32,46,0.45);
  box-shadow: 0 14px 50px -14px rgba(200,32,46,0.30);
}

/* Product visual */
.store-vis{
  position: relative;
  height: 170px;
  background:
    repeating-linear-gradient(135deg,
      rgba(91,184,229,0.05) 0px,
      rgba(91,184,229,0.05) 1px,
      transparent 1px,
      transparent 12px),
    rgba(91,184,229,0.04);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
}
.store-vis svg{
  width: 84px; height: 84px;
  color: var(--blue-light);
  filter: drop-shadow(0 4px 18px rgba(91,184,229,0.35));
}
.store-badge{
  position: absolute;
  top: 14px; right: 14px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(200,32,46,0.10);
  border: 1px solid rgba(200,32,46,0.45);
  padding: 5px 10px;
  border-radius: 999px;
}

.store-body{
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.store-meta{
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.store-card h3{
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red);
  margin: 0;
  letter-spacing: -.01em;
}
.store-card p{
  font-size: .92rem;
  line-height: 1.65;
  color: #fff; opacity: .9;
  margin: 0;
}
.store-features{
  list-style: none; padding: 0; margin: 4px 0 0;
}
.store-features li{
  position: relative;
  padding-left: 20px;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--blue-light);
  opacity: .95;
  margin-bottom: 4px;
}
.store-features li::before{
  content:"—";
  position: absolute; left: 0; top: 0;
  color: var(--blue-light); opacity: .8;
}

.store-price-row{
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.store-price{
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -.02em;
  line-height: 1;
}
.store-price small{
  display: block;
  margin-top: 6px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.store-fmt{
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff; opacity: .55;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

/* PayPal mount */
.paypal-btn{
  margin-top: 14px;
  min-height: 45px;
}
/* fallback if PayPal SDK failed (e.g. invalid client id) */
.paypal-btn.paypal-failed{
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  border: 1px dashed rgba(255,180,0,0.5);
  border-radius: 8px;
  font-size: .78rem;
  color: #ffd071;
  background: rgba(255,180,0,0.05);
  text-align: center;
}

/* ===== BUNDLE BLOCK ==================================== */
.bundle-block{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 40px;
  background:
    radial-gradient(60% 100% at 0% 0%, rgba(200,32,46,0.12), transparent 70%),
    radial-gradient(60% 100% at 100% 100%, rgba(31,111,168,0.10), transparent 70%),
    linear-gradient(180deg, rgba(28,28,32,0.85), rgba(14,14,16,0.9));
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 760px){
  .bundle-block{ grid-template-columns: 1fr; padding: 28px; }
}
.bundle-eyebrow{
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
}
.bundle-text h3{
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--red);
  margin: 0 0 8px;
  text-wrap: balance;
}
.bundle-text p{
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #fff; opacity: .92;
  max-width: 540px;
}
.bundle-items{
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.bundle-items li{
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  color: #fff; opacity: .88;
}
.bundle-items li span:first-child{ text-wrap: pretty; }
.bundle-items .bundle-price{
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
  opacity: 1;
}
.bundle-items .bundle-total{
  font-weight: 700;
  font-size: .95rem;
  opacity: 1;
  border-bottom: none;
  padding-top: 12px;
}
.bundle-cta{
  display: flex; flex-direction: column; gap: 14px;
  align-items: stretch;
  min-width: 240px;
}
