/* ── Fan Finder — base reset ─────────────────────────────── */
.fan-finder *,
.fan-finder *::before,
.fan-finder *::after { box-sizing: border-box; }

.fan-finder {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    color: #1a1a1a;
}

/* ── Progress bar ────────────────────────────────────────── */
.ff-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 2rem;
}
.ff-dot {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: #e0e0e0;
    transition: background 0.3s;
}
.ff-dot.done { background: #0C251A; }

/* ── Steps ───────────────────────────────────────────────── */
.ff-step { display: none; }
.ff-step.active { display: block; }

.ff-step-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 4px;
}
.ff-step-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: #1a1a1a;
}

/* ── Option buttons ──────────────────────────────────────── */
.ff-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}
.ff-opt {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.ff-opt:hover { border-color: #bbb; background: #fafafa; }
.ff-opt.selected,
.ff-opt[aria-selected="true"] {
    border: 2px solid #1D9E75;
    background: #E1F5EE;
}
.ff-opt-icon { font-size: 22px; line-height: 1; }
.ff-opt-label { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.ff-opt-sub   { font-size: 11px; color: #777; }

/* ── Navigation ──────────────────────────────────────────── */
.ff-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}
.ff-btn-back {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.ff-btn-back:hover { border-color: #0C251A; }
.ff-btn-next {
    background: #0C251A;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.ff-btn-next:hover:not(:disabled) { background: #F5EBE0; }
.ff-btn-next:disabled {
    background: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
}

/* ── Loading ─────────────────────────────────────────────── */
.ff-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #777;
    font-size: 14px;
}
.ff-spinner {
    width: 30px;
    height: 30px;
    border: 2.5px solid #e0e0e0;
    border-top-color: #1D9E75;
    border-radius: 50%;
    animation: ff-spin 0.7s linear infinite;
    margin: 0 auto 12px;
}
@keyframes ff-spin { to { transform: rotate(360deg); } }

/* ── Results header ──────────────────────────────────────── */
.ff-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.25rem;
}
.ff-chip {
    font-size: 11px;
    background: #E1F5EE;
    color: #085041;
    border-radius: 20px;
    padding: 3px 10px;
    font-weight: 500;
}

/* ── Product grid — responsive ───────────────────────────── */
.ff-results-grid {
    display: grid;
    gap: 16px;

    /* Mobile: 2 columns */
    grid-template-columns: repeat(2, 1fr);
}

/* Tablet: 3 columns */
@media (min-width: 600px) {
    .ff-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 4 columns */
@media (min-width: 860px) {
    .ff-results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Product card ────────────────────────────────────────── */
.ff-product-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}
.ff-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Image */
.ff-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ff-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.ff-product-card:hover .ff-product-img img {
    transform: scale(1.04);
}
.ff-product-no-img {
    font-size: 36px;
    color: #ccc;
}

/* Sale badge — top left, mirrors your store's style */
.ff-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    z-index: 2;
}

/* Match badge — top right */
.ff-match-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.02em;
}
.ff-match-best  { background: #0C251A; color: #fff; }
.ff-match-good  { background: #534AB7; color: #fff; }
.ff-match-close { background: #BA7517; color: #fff; }

/* Card body */
.ff-product-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ff-product-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.35;

    /* Clamp to 2 lines on small screens */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ff-product-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 10px;
    flex-wrap: wrap;
}
.ff-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #e02020;
}
.ff-product-regular-price {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
}
.ff-stock-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-bottom: 8px;
    align-self: flex-start;
}
.ff-instock    { background: #E1F5EE; color: #085041; }
.ff-outofstock { background: #f0f0f0; color: #999; }

.ff-btn-view {
    display: block;
    background: #F5EBE0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: auto;
	font-style: normal !important;
}
.ff-btn-view:hover { background: #F5EBE0; color: #000 !important; }

.elementor-kit-676 a{
	font-size:10px !important;
}

/* ── Empty / error ───────────────────────────────────────── */
.ff-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1rem;
    color: #888;
    font-size: 14px;
}

/* ── Restart ─────────────────────────────────────────────── */
.ff-restart {
    display: block;
    margin: 1.5rem auto 0;
    background: none;
    border: 1px solid #ddd;
    color: #666;
    font-size: 12px;
    padding: 7px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.ff-restart:hover { border-color: #aaa; }

/* ── Card fade-in animation ──────────────────────────────── */
.ff-product-card {
    animation: ff-card-in 0.25s ease both;
}
@keyframes ff-card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ff-product-card:nth-child(2) { animation-delay: 0.05s; }
.ff-product-card:nth-child(3) { animation-delay: 0.10s; }
.ff-product-card:nth-child(4) { animation-delay: 0.15s; }
.ff-product-card:nth-child(5) { animation-delay: 0.20s; }
.ff-product-card:nth-child(6) { animation-delay: 0.25s; }

/* ── Mobile tweaks ───────────────────────────────────────── */
@media (max-width: 400px) {
    .ff-step-title { font-size: 18px; }
    .ff-options { grid-template-columns: repeat(2, 1fr); }
    .ff-product-name { font-size: 12px; }
    .ff-product-price { font-size: 14px; }
}
