/* ==========================================================
   Shop — extends style.css (same tokens, wider card)
   ========================================================== */

.card.shop-width { max-width: 760px; }
.card.detail-width { max-width: 880px; }

/* --- Shop header --- */
.shop-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 12px 8px 8px;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease;
}
.back-link:hover { background: var(--surface-soft); color: var(--text); }
.back-link svg { transition: transform 0.18s ease; }
.back-link:hover svg { transform: translateX(-2px); }

.shop-top .mini-id {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}
.mini-id img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
}
.mini-id span { font-size: 0.8rem; font-weight: 600; }

/* --- Shop hero --- */
.shop-hero {
  text-align: center;
  padding: 26px 16px 6px;
}
.shop-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 100px;
}
.shop-kicker .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 143, 255, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(47, 143, 255, 0); }
}
.shop-hero h1 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.shop-hero p {
  margin: 10px auto 0;
  max-width: 480px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* --- Toolbar: search + category tabs --- */
.shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 13px 16px 13px 40px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-soft);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.search-wrap input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-wrap input::placeholder { color: var(--text-muted); }

.ftabs { display: flex; flex-wrap: wrap; gap: 7px; }
.ftab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.ftab:hover { background: var(--surface-soft); color: var(--text); }
.ftab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ftab-n {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
  background: rgba(20, 24, 31, 0.06);
}
.ftab.active .ftab-n { background: rgba(255, 255, 255, 0.22); }

/* --- Product grid --- */
.card.shop-wide { max-width: 1020px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .product-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-grid, .product-grid.grid-3 { grid-template-columns: 1fr; }
}

/* Card media (YouTube thumbnail) */
.pc-media {
  position: relative;
  display: block;
  margin: -18px -18px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft-hover);
}
.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.product-card:hover .pc-media img { transform: scale(1.03); }
.pc-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 9px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.cat-claude { background: rgba(232, 137, 15, 0.9); }
.cat-voice { background: rgba(147, 51, 234, 0.88); }
.cat-n8n { background: rgba(22, 163, 74, 0.88); }

.no-results {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.no-results button {
  margin-top: 12px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface-soft);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.no-results button:hover { background: var(--surface-soft-hover); }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.5s ease both;
}
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.2s; }
.product-card:nth-child(6) { animation-delay: 0.25s; }
.product-card:nth-child(7) { animation-delay: 0.3s; }
.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  box-shadow: 0 12px 28px -16px rgba(20, 24, 31, 0.18);
}

.p-head { display: flex; align-items: center; gap: 12px; }
.p-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-badge {
  margin-left: auto;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, #2f8fff, #1d5fd4);
  padding: 4px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.p-title { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; }
.p-tagline { font-size: 0.82rem; color: var(--text-soft); line-height: 1.45; flex: 1; }

.p-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.p-price { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.p-compare {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.p-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.p-cta svg { transition: transform 0.18s ease; }
.product-card:hover .p-cta svg { transform: translate(2px, -2px); }

/* Trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding: 0 8px;
}
.trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust svg { color: var(--text-muted); flex-shrink: 0; }

/* ==========================================================
   Product detail page
   ========================================================== */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  margin-top: 22px;
  align-items: start;
}
@media (max-width: 720px) {
  .detail-grid { grid-template-columns: 1fr; }
  .buy-box { position: static !important; }
}

.detail-main { min-width: 0; }

.d-icon-row { display: flex; align-items: center; gap: 14px; }
.d-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.d-icon svg { width: 26px; height: 26px; }

/* Detail hero media (YouTube thumbnail, links to the video) */
.d-media {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft-hover);
}
.d-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 24, 31, 0.62);
  color: #fff;
  backdrop-filter: blur(3px);
  transition: transform 0.18s ease, background 0.18s ease;
}
.d-media:hover .d-play { transform: scale(1.08); background: var(--accent); }
.d-media .pc-cat { top: 12px; left: 12px; }

.dl-list li strong { font-weight: 600; }
.dl-type {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.dl-list svg { color: var(--accent); margin-top: 3px; }
.delivery-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
}
.delivery-note svg { color: var(--accent); flex-shrink: 0; }
.d-req { font-size: 0.88rem; color: var(--text-soft); line-height: 1.6; }
.d-proof a { color: var(--accent); font-weight: 600; text-decoration: none; }
.d-proof a:hover { text-decoration: underline; }
.d-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, #2f8fff, #1d5fd4);
  padding: 4px 10px;
  border-radius: 100px;
}

.d-title {
  margin-top: 16px;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.d-sub {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.d-proof {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 143, 255, 0.18);
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
}
.d-proof svg { flex-shrink: 0; color: var(--accent); margin-top: 1px; }

.d-section { margin-top: 28px; }
.d-section h2 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.includes-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.includes-list li {
  display: flex;
  gap: 10px;
  font-size: 0.87rem;
  line-height: 1.5;
}
.includes-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #16a34a;
}

.stack-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 100px;
}

.who-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.who-list li {
  display: flex;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.who-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  overflow: hidden;
  transition: background 0.18s ease;
}
.faq details[open] { background: var(--surface); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  font-size: 0.86rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .faq-a {
  padding: 0 15px 14px;
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* --- Buy box (sticky) --- */
.buy-box {
  position: sticky;
  top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px -20px rgba(20, 24, 31, 0.18);
  padding: 20px;
}
.bb-price-row { display: flex; align-items: baseline; gap: 8px; }
.bb-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.bb-compare { font-size: 0.95rem; color: var(--text-muted); text-decoration: line-through; }
.bb-note { margin-top: 2px; font-size: 0.76rem; color: var(--text-muted); font-weight: 500; }

.bb-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}
.bb-buy:hover { background: #1f7cf0; }
.bb-buy:active { transform: scale(0.985); }

/* Express checkout (Apple Pay / Google Pay) under the buy button */
.express-wrap { margin-top: 4px; }
.bb-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bb-or::before, .bb-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
#express-checkout { min-height: 48px; }

.bb-secondary {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.18s ease;
}
.bb-secondary:hover { background: var(--accent-soft); }

.bb-perks { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.bb-perks li {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-soft);
}
.bb-perks svg { flex-shrink: 0; margin-top: 2px; color: #16a34a; }

.bb-divider { height: 1px; background: var(--border); margin: 16px 0 12px; }
.bb-guarantee {
  display: flex;
  gap: 9px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.bb-guarantee svg { flex-shrink: 0; color: var(--text-muted); margin-top: 1px; }

/* "Want everything?" Launchpad strip */
.upsell-strip {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, #6db4ff, #2f8fff 45%, #e8890f 95%) border-box;
  border: 1.5px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.upsell-strip:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -16px rgba(232, 137, 15, 0.35); }
.upsell-strip .vs-body { flex: 1; min-width: 0; }
.upsell-strip .vs-title { display: block; font-size: 0.88rem; font-weight: 700; }
.upsell-strip .vs-desc { display: block; font-size: 0.78rem; color: var(--text-soft); margin-top: 2px; }
.upsell-strip .vs-price { font-size: 0.95rem; font-weight: 800; white-space: nowrap; }

/* Demo toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 420px);
  background: #14181f;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.45;
  padding: 13px 17px;
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(20, 24, 31, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { flex-shrink: 0; color: #6db4ff; }

/* Not-found state */
.nf {
  text-align: center;
  padding: 60px 20px;
}
.nf h1 { font-size: 1.3rem; font-weight: 700; }
.nf p { margin-top: 8px; color: var(--text-soft); font-size: 0.9rem; }
.nf a { color: var(--accent); font-weight: 600; }
