:root {
    --fd-accent: var(--tvc-primary, #1d4ed8);
    --fd-accent-dark: var(--tvc-primary-hover, #1e40af);
    --fd-accent-soft: var(--tvc-primary-soft, #eff6ff);
    --fd-amber: var(--tvc-accent, #f59e0b);
    --fd-amber-dark: var(--tvc-accent-dark, #b45309);
    --fd-success: var(--tvc-success, #047857);
    --fd-success-soft: var(--tvc-success-soft, #ecfdf5);
    --fd-hot: #e11d48;
    --fd-ink: var(--tvc-text, #0f172a);
    --fd-ink-2: var(--tvc-text-muted, #475569);
    --fd-muted: var(--tvc-text-light, #64748b);
    --fd-line: var(--tvc-border, #e2e8f0);
}

.feedico-hub {
    margin: 0.5em 0 2em;
}

/* ---------- Hero Banner ---------- */
.feedico-hero {
    background: radial-gradient(900px 320px at 85% -15%, rgba(96, 165, 250, 0.35) 0%, transparent 60%),
                linear-gradient(135deg, var(--fd-accent-dark), var(--fd-accent));
    color: #ffffff;
    border-radius: 16px;
    padding: 36px 24px 28px;
    margin-bottom: 20px;
    text-align: center;
}

.feedico-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.feedico-hero-title {
    color: #ffffff !important;
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
}

.feedico-hero-sub {
    margin: 0 0 18px;
    opacity: 0.92;
    font-size: 1rem;
}

.feedico-hero-search {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.feedico-search-input {
    flex: 1 1 auto;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    font-size: 0.98rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.feedico-btn-primary {
    padding: 12px 22px;
    background: #0f172a;
    color: #ffffff !important;
    border-radius: 10px;
}

.feedico-hero-chips {
    margin-top: 14px;
    font-size: 0.88rem;
}

.feedico-hero-chips span {
    opacity: 0.9;
    margin-right: 4px;
}

.feedico-hero-chips a {
    display: inline-block;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 12px;
    border-radius: 999px;
    margin: 3px 2px;
    text-decoration: none !important;
    font-weight: 600;
}

.feedico-hero-chips a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.feedico-hero-stats {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    font-size: 0.9rem;
    opacity: 0.95;
}

/* ---------- Tabs & Categories ---------- */
.feedico-tabs-row {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--fd-line);
}

.feedico-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedico-tab {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--fd-ink-2) !important;
    background: #f1f5f9;
    text-decoration: none !important;
    transition: background 0.15s;
}

.feedico-tab:hover {
    background: #e2e8f0;
}

.feedico-tab.is-active {
    background: var(--fd-accent);
    color: #ffffff !important;
}

.feedico-cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.feedico-cat-pill {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fd-ink-2) !important;
    background: #ffffff;
    border: 1px solid var(--fd-line);
    text-decoration: none !important;
}

.feedico-cat-pill.is-active {
    border-color: var(--fd-accent);
    background: var(--fd-accent-soft);
    color: var(--fd-accent-dark) !important;
}

.feedico-results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--fd-muted);
    margin-bottom: 12px;
}

.feedico-reset-link {
    font-size: 0.86rem;
    color: var(--fd-accent-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- A-Z Stores ---------- */
.feedico-az-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 12px 0 18px;
}

.feedico-az-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--fd-line);
    background: #ffffff;
    color: var(--fd-ink) !important;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none !important;
}

.feedico-az-btn.is-active {
    background: var(--fd-accent);
    border-color: var(--fd-accent);
    color: #ffffff !important;
}

.feedico-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.feedico-az-section {
    margin-bottom: 24px;
}

.feedico-az-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--fd-accent-dark);
    border-bottom: 2px solid var(--fd-accent-soft);
    padding-bottom: 6px;
    margin: 0 0 12px;
}

.feedico-store-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--fd-line);
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--fd-ink) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.15s, border-color 0.15s;
}

.feedico-store-card:hover {
    border-color: var(--fd-accent);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09);
}

.feedico-store-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid var(--fd-line);
    background: #f8fafc;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 4px;
}

.feedico-store-name {
    font-weight: 700;
    font-size: 0.94rem;
    line-height: 1.25;
}

.feedico-store-cnt {
    font-size: 0.8rem;
    color: var(--fd-accent-dark);
    font-weight: 600;
    margin-top: 2px;
}

/* ---------- Deal Cards (TheVoucherCodes style) ---------- */
.feedico-deal-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0.5em 0 1.25em;
}

.feedico-deal {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(15, 23, 42, 0.06);
    padding: 18px;
    border: 1px solid var(--fd-line);
    transition: box-shadow 0.15s ease;
}

.feedico-deal:hover {
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
}

.feedico-deal.is-code {
    border-left: 4px solid var(--fd-accent);
}

.feedico-deal-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 92px;
    border-radius: 12px;
    background: var(--fd-accent-soft);
    color: var(--fd-accent-dark);
    padding: 8px;
}

.feedico-deal.is-offer .feedico-deal-badge {
    background: #fef3c7;
    color: #92400e;
}

.feedico-deal-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 36px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 6px;
    padding: 4px;
    overflow: hidden;
}

.feedico-logo-img {
    max-height: 28px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.feedico-logo-mono {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--fd-accent);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
}

.feedico-badge-big {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.05;
}

.feedico-badge-small {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-top: 3px;
    text-transform: uppercase;
}

.feedico-deal-body {
    min-width: 0;
}

.feedico-deal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.feedico-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    text-decoration: none !important;
}

.feedico-tag.tag-code {
    background: var(--fd-accent-soft);
    color: var(--fd-accent-dark);
}

.feedico-tag.tag-deal {
    background: #fef3c7;
    color: #92400e;
}

.feedico-tag.tag-hot {
    background: #ffe4e6;
    color: var(--fd-hot);
}

.feedico-tag.tag-brand {
    background: #f1f5f9;
    color: var(--fd-ink-2);
}

.feedico-tag.tag-brand:hover {
    background: #e2e8f0;
}

.feedico-deal-title {
    font-size: 1.06rem;
    font-weight: 750;
    margin: 0 0 4px;
    color: var(--fd-ink);
}

.feedico-deal-desc {
    margin: 0;
    color: var(--fd-ink-2);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feedico-deal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--fd-muted);
}

.feedico-store-link {
    color: var(--fd-accent-dark) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.feedico-store-link:hover {
    text-decoration: underline !important;
}

.feedico-deal-action {
    display: flex;
    align-items: center;
}

.feedico-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    border: 0;
}

.feedico-btn-deal {
    padding: 12px 22px;
    background: var(--fd-accent);
    color: #ffffff !important;
}

.feedico-btn-deal:hover {
    background: var(--fd-accent-dark);
}

.feedico-btn-code {
    position: relative;
    padding: 12px 50px 12px 20px;
    background: var(--fd-accent);
    color: #ffffff !important;
    border: 2px dashed var(--fd-accent-dark);
}

.feedico-btn-code.is-revealed {
    padding: 12px 20px;
    background: #f8fafc;
    color: var(--fd-ink) !important;
    border: 2px dashed var(--fd-accent);
}

.feedico-peel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--fd-ink);
    border-radius: 0 8px 8px 0;
    font-family: monospace;
    font-size: 0.82rem;
}

.feedico-btn-code.is-revealed .feedico-peel {
    display: none;
}

.feedico-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.feedico-page-btn {
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--fd-ink) !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
}

.feedico-page-info {
    font-size: 0.88rem;
    color: var(--fd-muted);
}

.feedico-notice {
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
}

@media (max-width: 680px) {
    .feedico-hero-search {
        flex-direction: column;
    }
    .feedico-deal {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .feedico-deal-badge {
        min-height: 58px;
        flex-direction: row;
        gap: 10px;
    }
    .feedico-deal-logo {
        width: 40px;
        margin-bottom: 0;
    }
    .feedico-deal-action .feedico-btn {
        width: 100%;
    }
}

/* ---------- UK Discounted Product Grid ---------- */
.feedico-products-wrap {
    margin: 1.25em 0;
}

.feedico-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.feedico-prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.feedico-prod-card {
    background: #ffffff;
    border: 1px solid var(--fd-line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.15s ease;
}

.feedico-prod-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.11);
}

.feedico-prod-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ffffff;
    border-bottom: 1px solid var(--fd-line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
}

.feedico-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feedico-prod-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--fd-hot);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
}

.feedico-prod-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.feedico-prod-meta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fd-muted);
}

.feedico-prod-title {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--fd-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feedico-prod-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.feedico-sale {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--fd-success);
}

.feedico-orig {
    font-size: 0.85rem;
    color: var(--fd-muted);
    text-decoration: line-through;
}

.feedico-prod-footer {
    margin-top: auto;
    padding-top: 6px;
}
