/* ── Reset & base ─────────────────────────────── */
.ezizz-cards-widget { margin: 40px 0; }

.ezizz-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.custom-widget-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #2ab391 0%, #7b68ee 50%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Grid ─────────────────────────────────────── */
.ezizz-cards-grid { display: grid; gap: 20px; margin-bottom: 28px; }
.ezizz-columns-1 .ezizz-cards-grid { grid-template-columns: 1fr; }
.ezizz-columns-2 .ezizz-cards-grid { grid-template-columns: repeat(2, 1fr); }
.ezizz-columns-3 .ezizz-cards-grid { grid-template-columns: repeat(3, 1fr); }
.ezizz-columns-4 .ezizz-cards-grid { grid-template-columns: repeat(4, 1fr); }

/* ── Card shell ───────────────────────────────── */
.ezizz-product-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #1e1e1e;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .35s cubic-bezier(.4,0,.2,1),
                border-color .25s ease,
                box-shadow .35s ease;
    position: relative;
    overflow: hidden;
}

.ezizz-product-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2ab391, transparent);
    opacity: 0;
    transition: opacity .3s;
}

.ezizz-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(42,179,145,.4);
    box-shadow: 0 16px 40px rgba(42,179,145,.08);
}

.ezizz-product-card:hover::before { opacity: 1; }

/* ── Logo ─────────────────────────────────────── */
.ezizz-logo-container {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    transition: transform .3s ease;
}

.ezizz-product-card:hover .ezizz-logo-container { transform: scale(1.06); }

.ezizz-logo-image { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* ── Card body ────────────────────────────────── */
.ezizz-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* ── ① Name row ───────────────────────────────── */
.ezizz-name-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.ezizz-card-title-link { text-decoration: none; }

.ezizz-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    transition: color .25s;
}

.ezizz-product-card:hover .ezizz-card-title { color: #2ab391; }

/* ── Badges ───────────────────────────────────── */
.ezizz-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.ezizz-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: .2px;
    background: var(--badge-bg, #f0f0f0);
    color: var(--badge-color, #333);
}

/* ── ② Stats row ──────────────────────────────── */
.ezizz-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 22px;
}

.ezizz-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #8892b0;
}

.ezizz-stat strong { color: #fff; font-weight: 600; }

.ezizz-first-support {
    font-size: 0.75rem;
    color: #2ab391;
    font-style: italic;
    opacity: .85;
}

/* ── ③ Tagline ────────────────────────────────── */
.ezizz-card-tagline {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ezx-tag--industry{
	font-size: .85rem;
    color: #c4c4c4;
}

/* ── ④ Actions ────────────────────────────────── */
.ezizz-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.ezizz-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #ccd6f6;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.ezizz-btn:hover:not(:disabled) {
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.1);
    transform: translateY(-1px);
}

.ezizz-btn-icon { font-size: 0.85rem; }

.ezizz-btn-count {
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Active / already-voted states */
.ezizz-btn--vote.is-active,
.ezizz-product-card.has-voted .ezizz-btn--vote {
    background: rgba(99,179,237,.15);
    border-color: rgba(99,179,237,.4);
    color: #63b3ed;
}

.ezizz-btn--hype.is-active,
.ezizz-product-card.has-hyped .ezizz-btn--hype {
    background: rgba(255,107,107,.12);
    border-color: rgba(255,107,107,.35);
    color: #ff8c8c;
}

.ezizz-btn:disabled { cursor: default; opacity: .85; }

/* Ripple on click */
.ezizz-btn::after {
    content: '';
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    transform: scale(0);
    transition: transform .4s ease, opacity .4s ease;
    opacity: 0;
}
.ezizz-btn.ripple::after {
    inset: -50%;
    transform: scale(1);
    opacity: 0;
    transition: none;
}

/* Microcopy */
.ezizz-microcopy {
    font-size: 0.65rem;
    color: #4a5568;
    font-style: italic;
    margin-left: 2px;
    white-space: nowrap;
}

/* ── Loading / spinner ────────────────────────── */
.ezizz-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}
.ezizz-spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: #2ab391;
    border-radius: 50%;
    animation: ezizz-spin .75s linear infinite;
}
@keyframes ezizz-spin { to { transform: rotate(360deg); } }

/* ── View-all button ──────────────────────────── */
.ezizz-view-all-section { text-align: center; padding: 16px 0; }
.ezizz-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2ab391, #7b68ee);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform .25s, box-shadow .25s;
}
.ezizz-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42,179,145,.25);
}

/* ── Filter select ────────────────────────────── */
.ezizz-widget-filters { position: relative; }
.ezizz-filter-select {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 9px 34px 9px 14px;
    color: #ccd6f6;
    font-size: 0.85rem;
    appearance: none;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.ezizz-filter-select:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.25);
}
.ezizz-widget-filters::after {
    content: "▾";
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: rgba(255,255,255,.5);
    pointer-events: none;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
    .ezizz-columns-4 .ezizz-cards-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
    .ezizz-columns-3 .ezizz-cards-grid,
    .ezizz-columns-4 .ezizz-cards-grid { grid-template-columns: repeat(2,1fr); }
    .ezizz-widget-header { flex-direction: column; align-items: flex-start; }
    .ezizz-filter-select { width: 100%; }
}
@media (max-width: 480px) {
    .ezizz-cards-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .ezizz-microcopy { display: none; }
}