.templates .card/* === Layout helpers for templates landing page === */

    .templates-hero {
      padding: 40px 0 32px;
    }

    .templates-hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      gap: 24px;
      align-items: center;
    }

    @media (max-width: 900px) {
      .templates-hero-grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    .hero-badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
      font-size: 13px;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 6px 12px;
      background: #ffffff;               /* same as var(--card) usage */
      border: 1px solid rgba(2, 6, 23, .08);
      color: var(--muted);
      font-weight: 500;
    }

    .hero-meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
      margin-top: 20px;
      font-size: 13px;
      color: var(--muted);
    }

    .hero-meta-label {
      display: block;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 2px;
    }

    /* Template cards */

    .templates-grid {
      display: grid;
      gap: 22px;
      grid-template-columns: repeat(1, 1fr);
    }

    @media (min-width: 720px) {
      .templates-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .template-thumb {
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(2, 6, 23, .08);
      background: #eef2ff;
      margin-bottom: 12px;
    }

    .template-title {
      font-size: 16px;
      font-weight: 700;
      margin: 0 0 8px;
      color: var(--text);
    }

    .template-subtitle {
      font-size: 14px;
      margin: 0 0 10px;
      color: var(--muted);
    }

    .template-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      margin-top: 4px;
      color: var(--muted);
    }

    .template-price {
      font-weight: 700;
      color: var(--accent);
    }

    .template-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .template-tag {
      border-radius: 999px;
      padding: 6px 10px;
      background: #ffffff;
      border: 1px solid rgba(2, 6, 23, .08);
      font-size: 12px;
      color: var(--muted);
      font-weight: 500;
    }

    .template-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      margin-top: 14px;
      flex-wrap: wrap;
    }

    .template-actions .btn.primary {
      flex-shrink: 0;
    }

    .template-secondary-link {
      font-size: 13px;
    }

    /* Section layout */

    .section-block {
      margin-top: 44px;
    }

    .section-header-row {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 16px;
    }

    @media (min-width: 900px) {
      .section-header-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
      }
    }

    .section-header-row .section-sub {
      max-width: none;
      width: 100%;
    }

    /* Why card */

    .why-card {
      border-radius: var(--radius);
      padding: var(--card-pad);
      background: var(--card);
      border: 1px solid rgba(2, 6, 23, .08);
      box-shadow: var(--shadow);
    }

    .why-card h3 {
      margin-top: 0;
      margin-bottom: 10px;
    }

    .why-card ul {
      margin: 10px 0 0;
      padding-left: 18px;
      color: var(--muted);
    }

    .why-pill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }

    .why-pill {
      border-radius: 999px;
      padding: 6px 10px;
      background: #ffffff;
      border: 1px solid rgba(2, 6, 23, .08);
      font-size: 12px;
      color: var(--muted);
      font-weight: 500;
    }

    /* Reviews */

    .reviews-grid {
      display: grid;
      gap: 18px;
      grid-template-columns: repeat(1, 1fr);
    }

    @media (min-width: 720px) {
      .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .review-card {
      border-radius: var(--radius);
      padding: var(--card-pad);
      background: var(--card);
      border: 1px solid rgba(2, 6, 23, .08);
      box-shadow: var(--shadow);
      font-size: 14px;
    }

    .review-stars {
      color: #facc15;
      font-size: 14px;
      margin-bottom: 6px;
    }

    .review-meta {
      margin-top: 8px;
      font-size: 12px;
      color: var(--muted);
    }

    /* Chips "who it's for" */

    .chips-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .chips-grid .chip {
      font-size: 12px;
    }

    /* Included section */

    .included-grid {
      display: grid;
      gap: 22px;
      grid-template-columns: 1fr;
    }

    @media (min-width: 900px) {
      .included-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      }
    }

    .badge-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .badge-stack .chip {
      font-size: 12px;
    }

    /* FAQ */

    .faq-grid {
      display: grid;
      gap: 18px;
      grid-template-columns: 1fr;
    }

    @media (min-width: 900px) {
      .faq-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .faq-item {
      padding-top: 10px;
      border-top: 1px solid rgba(2, 6, 23, .08);
    }

    .faq-q {
      font-weight: 700;
      color: var(--text);
      margin-bottom: 4px;
    }

    .faq-a {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    /* Closing CTA */

    .closing-cta {
      text-align: center;
      margin-top: 32px;
      margin-bottom: 32px;
    }

    .closing-cta h2 {
      margin-bottom: 8px;
    }

    .closing-cta p {
      max-width: 520px;
      margin: 0 auto 18px;
    }

.templates-grid .template-card {
      display: flex;
      flex-direction: column;
    }

.templates-grid .template-card .template-actions {
      margin-top: auto;
    }
    .templates .card {
      display: flex;
      flex-direction: column;
    }
    .templates .card .card-footer {
      margin-top: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }
    .templates .card .etsy-rating {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.9rem;
      white-space: nowrap;
    }
    .templates .card .etsy-rating .stars {
      color: #fbbf24;
      font-size: 1rem;
    }
    