/* ════════════════════════════════════════════════════════════════
   FEATURED TRIPTYCH — 3 Winning Products Side by Side
   seller/assets/css/featured-triptych.css

   Used in two places on the dashboard:
   1. Below the onboarding banner (steps 1–4) — full-width section
   2. Inside the show_only_forecast block (step 5, no orders yet)

   Deliberately different look from the album-stack showcase:
   clean, bright, grid-based — communicates catalog breadth.
   ════════════════════════════════════════════════════════════════ */

/* ── Section wrapper ─────────────────────────────────────────── */
.ftp-section {
    margin: 14px 0 4px;
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* ── Section header ──────────────────────────────────────────── */
.ftp-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.ftp-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: #4f35e8;
    margin-bottom: 3px;
}

.ftp-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4f35e8;
    box-shadow: 0 0 6px rgba(79, 53, 232, .5);
    animation: ftpPulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ftpPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .45;
        transform: scale(.75);
    }
}

.ftp-title {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.ftp-viewall {
    font-size: 12px;
    font-weight: 700;
    color: #4f35e8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap .15s;
    white-space: nowrap;
}

.ftp-viewall:hover {
    gap: 7px;
    color: #4f35e8;
}

/* ── Grid — 3 equal columns, horizontal scroll on mobile ─────── */
.ftp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

/* ── Individual card ─────────────────────────────────────────── */
.ftp-card {
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(220, 220, 235, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1),
        box-shadow .22s cubic-bezier(.4, 0, .2, 1);
    /* staggered entrance */
    opacity: 0;
    animation: ftpCardIn .42s cubic-bezier(.4, 0, .2, 1) forwards;
}

.ftp-card:nth-child(1) {
    animation-delay: .04s;
}

.ftp-card:nth-child(2) {
    animation-delay: .10s;
}

.ftp-card:nth-child(3) {
    animation-delay: .16s;
}

.ftp-card:nth-child(4) {
    animation-delay: .22s;
}

.ftp-card:nth-child(5) {
    animation-delay: .28s;
}

.ftp-card:nth-child(6) {
    animation-delay: .34s;
}

@keyframes ftpCardIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ftp-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 10px 28px rgba(79, 53, 232, 0.13),
        0 0 0 1.5px rgba(79, 53, 232, 0.12);
}

/* ── Card image ──────────────────────────────────────────────── */
.ftp-img {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.ftp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
    filter: brightness(.92) saturate(1.08);
}

.ftp-card:hover .ftp-img img {
    transform: scale(1.06);
}

/* ── Profit overlay — green gradient rising from image bottom ── */
.ftp-profit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(21, 128, 74, .94) 0%,
            rgba(21, 128, 74, .72) 30%,
            rgba(21, 128, 74, .28) 62%,
            transparent 100%);
    padding: 18px 9px 7px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
    z-index: 2;
}

.ftp-profit-lbl {
    font-size: 7.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: rgba(255, 255, 255, .72);
    line-height: 1;
    margin-bottom: 1px;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.ftp-profit-val {
    display: flex;
    align-items: flex-start;
    gap: 1px;
    line-height: 1;
}

.ftp-profit-sym {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.ftp-profit-num {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.5px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}

/* Status badge */
.ftp-badge {
    position: absolute;
    top: 6px;
    left: 7px;
    z-index: 3;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .4px;
    backdrop-filter: blur(4px);
}

.ftp-badge.imported {
    background: rgba(255, 255, 255, .75);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, .28);
}

.ftp-badge.live {
    background: rgba(255, 255, 255, .75);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, .28);
}

/* ── Card body ───────────────────────────────────────────────── */
.ftp-body {
    padding: 8px 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.ftp-name {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #111827;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}

/* Cost → Sell */
.ftp-price-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ftp-price-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ftp-price-lbl {
    font-size: 7.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9ca3af;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.ftp-price-val {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    line-height: 1.1;
}

.ftp-price-val.sell {
    color: #4f35e8;
}

.ftp-price-arrow {
    font-size: 10px;
    color: #d1d5db;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Monthly row */
.ftp-monthly {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fef9ec, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 7px;
    padding: 4px 8px;
}

.ftp-monthly-lbl {
    font-size: 7.5px;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.ftp-monthly-val {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: #b45309;
}

/* Stars */
.ftp-stars {
    font-size: 9px;
    color: #f59e0b;
    letter-spacing: 1px;
}

/* ── Import button — full width inside card ──────────────────── */
.ftp-btn {
    width: 100%;
    height: 30px;
    border: none;
    border-radius: 0 0 13px 13px;
    background: linear-gradient(135deg, #4f35e8, #6d52f5);
    color: #fff;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 3px;
    transition: box-shadow .15s;
    position: relative;
    overflow: hidden;
}

.ftp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
    transition: left .32s ease;
    pointer-events: none;
}

.ftp-btn:hover::before {
    left: 130%;
}

.ftp-btn:hover {
    box-shadow: 0 3px 12px rgba(79, 53, 232, .35);
}

.ftp-btn:disabled {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    cursor: default;
    box-shadow: none;
}

.ftp-btn:disabled::before {
    display: none;
}

/* ── Skeleton cards while loading ───────────────────────────── */
.ftp-skeleton {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f0f5;
}

.ftp-sk-img {
    height: 130px;
    background: linear-gradient(110deg, #f0f0f8 30%, #e8e8f5 50%, #f0f0f8 70%);
    background-size: 200% 100%;
    animation: ftpSk 1.4s linear infinite;
}

.ftp-sk-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ftp-sk-line {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(110deg, #f0f0f8 30%, #e8e8f5 50%, #f0f0f8 70%);
    background-size: 200% 100%;
    animation: ftpSk 1.4s linear infinite;
}

.ftp-sk-line.w-full {
    width: 100%;
}

.ftp-sk-line.w-80 {
    width: 80%;
}

.ftp-sk-line.w-60 {
    width: 60%;
}

.ftp-sk-btn {
    height: 30px;
    border-radius: 0 0 13px 13px;
    margin-top: 6px;
    background: linear-gradient(110deg, #ebe8fd 30%, #ddd8fb 50%, #ebe8fd 70%);
    background-size: 200% 100%;
    animation: ftpSk 1.4s linear infinite;
}

@keyframes ftpSk {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Responsive ──────────────────────────────────────────────── */

/* Tablet — 2 columns */
@media (max-width: 700px) {
    .ftp-grid {
        /* Horizontal scroll strip — show 2.3 cards to hint at more */
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding-bottom: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .ftp-grid::-webkit-scrollbar {
        display: none;
    }

    .ftp-card,
    .ftp-skeleton {
        flex-shrink: 0;
        width: 155px;
        scroll-snap-align: start;
    }

    .ftp-img {
        height: 115px;
    }

    .ftp-profit-num {
        font-size: 19px;
    }
}

@media (max-width: 400px) {

    .ftp-card,
    .ftp-skeleton {
        width: 138px;
    }

    .ftp-img {
        height: 105px;
    }

    .ftp-name {
        font-size: 10.5px;
    }

    .ftp-profit-num {
        font-size: 17px;
    }
}