/* ===== Template Showcase ===== */
        .template-hero {
            text-align: center;
            padding-bottom: 32px;
        }
        .template-hero h1 {
            font-size: clamp(1.8rem, 4vw, 2.8rem);
            line-height: 1.2;
            margin-bottom: 16px;
        }
        .template-hero .subtitle {
            font-size: 1.1rem;
            color: var(--text-light);
            max-width: 640px;
            margin: 0 auto 32px;
            line-height: 1.7;
        }
        .template-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }
        .template-stats .ts {
            text-align: center;
        }
        .template-stats .ts-num {
            display: block;
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--dark);
        }
        .template-stats .ts-label {
            font-size: 0.85rem;
            color: var(--text-light);
        }

        /* Filter tabs */
        .filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-bottom: 40px;
            padding: 0 16px;
        }
        .filter-btn {
            padding: 8px 18px;
            border: 1px solid var(--border);
            border-radius: 100px;
            background: var(--white);
            color: var(--text);
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }
        .filter-btn:hover {
            border-color: var(--dark);
            background: var(--bg-2);
        }
        .filter-btn.active {
            background: var(--dark);
            color: var(--white);
            border-color: var(--dark);
        }

        /* Industry section */
        .industry-section {
            margin-bottom: 56px;
        }
        .industry-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }
        .industry-icon {
            width: 36px;
            height: 36px;
            background: var(--bg-2);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .industry-icon svg {
            width: 20px;
            height: 20px;
        }
        .industry-header h2 {
            font-size: 1.35rem;
            margin: 0;
        }

        /* Template grid */
        .tpl-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        /* Template card */
        .tpl-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: 14px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-decoration: none;
            color: inherit;
            display: block;
        }
        .tpl-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.1);
        }

        /* Live preview bar */
        .tpl-preview {
            height: 260px;
            position: relative;
            overflow: hidden;
            background: #f0f0f0;
        }
        .tpl-preview iframe {
            width: 1440px;
            height: 1200px;
            border: none;
            pointer-events: none;
            position: absolute;
            top: 0;
            left: 0;
            transform-origin: top left;
        }
        .tpl-preview .tpl-name-overlay {
            display: none;
        }
        .tpl-preview .tpl-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            padding: 4px 10px;
            border-radius: 100px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            z-index: 3;
            background: rgba(0,0,0,0.55) !important;
            color: #fff !important;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        /* Card body */
        .tpl-body {
            padding: 16px 20px 20px;
        }
        .tpl-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 4px;
            color: var(--dark);
        }
        .tpl-desc {
            font-size: 0.85rem;
            color: var(--text-light);
            line-height: 1.5;
            margin-bottom: 12px;
        }
        .tpl-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .tpl-price {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--dark);
        }
        .tpl-link {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .tpl-link svg {
            width: 16px;
            height: 16px;
            transition: transform 0.2s ease;
        }
        .tpl-card:hover .tpl-link svg {
            transform: translateX(3px);
        }

        /* Fallback backgrounds while iframe loads */
        .style-dark .tpl-preview { background: #111; }
        .style-light .tpl-preview { background: #faf8f5; }
        .style-bold .tpl-preview { background: #0d1117; }

        /* Responsive */
        @media (max-width: 900px) {
            .tpl-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 580px) {
            .tpl-grid {
                grid-template-columns: 1fr;
            }
            .template-stats {
                gap: 24px;
            }
        }
