/* Tuesday Food Deals - scoped with tfd- prefix to reduce theme/plugin conflicts. */
.tfd-showcase {
    --tfd-gold: #f4b400;
    --tfd-gold-dark: #d99b00;
    --tfd-text: #171717;
    --tfd-muted: #6f6f6f;
    --tfd-border: #ececec;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 18px;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--tfd-text);
}

.tfd-showcase *,
.tfd-showcase *::before,
.tfd-showcase *::after {
    box-sizing: border-box;
}

.tfd-header {
    text-align: center;
    margin: 0 auto 30px;
    max-width: 760px;
}

.tfd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
    color: #9a6b00;
    margin-bottom: 10px;
}

.tfd-fire {
    font-size: 16px;
}

.tfd-header h2 {
    margin: 0 0 8px;
    color: var(--tfd-text);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    font-weight: 900;
}

.tfd-header p {
    margin: 0 auto 15px;
    color: var(--tfd-muted);
    font-size: 15px;
    line-height: 1.6;
}

.tfd-main-badge,
.tfd-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tfd-gold);
    color: #171717;
    font-weight: 900;
    border-radius: 999px;
}

.tfd-main-badge {
    padding: 7px 14px;
    font-size: 13px;
}

.tfd-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tfd-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tfd-border);
    border-radius: 18px;
    box-shadow: 0 7px 24px rgba(0, 0, 0, .07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.tfd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .11);
}

.tfd-hidden-card {
    display: none;
}

.tfd-hidden-card.tfd-card-visible {
    display: block;
    animation: tfd-fade-in .25s ease both;
}

@keyframes tfd-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tfd-card-media {
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
    aspect-ratio: 1 / .82;
}

.tfd-image-link,
.tfd-image-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.tfd-image-link img {
    object-fit: cover;
    transition: transform .35s ease;
}

.tfd-card:hover .tfd-image-link img {
    transform: scale(1.035);
}

.tfd-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    font-size: 11px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
}

.tfd-card-body {
    padding: 16px;
}

.tfd-card-body h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
}

.tfd-card-body h3 a {
    color: var(--tfd-text);
    text-decoration: none;
}

.tfd-card-body h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tfd-price {
    min-height: 29px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.tfd-regular-price {
    color: #888;
    text-decoration: line-through;
    font-size: 13px;
}

.tfd-current-price {
    color: var(--tfd-text);
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.tfd-current-price del,
.tfd-current-price ins {
    text-decoration: none;
}

.tfd-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, opacity .18s ease;
}

.tfd-button-active {
    background: var(--tfd-gold);
    color: #171717;
}

.tfd-button-active:hover {
    background: var(--tfd-gold-dark);
    color: #171717;
    transform: translateY(-1px);
}

.tfd-button-disabled {
    background: #f0f0f0;
    color: #777;
    cursor: default;
    user-select: none;
}

.tfd-view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px auto 0;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: #171717;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease;
}

.tfd-view-more:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.tfd-arrow {
    font-size: 16px;
}

@media (max-width: 1024px) {
    .tfd-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .tfd-showcase {
        padding: 32px 10px;
    }

    .tfd-header {
        margin-bottom: 22px;
    }

    .tfd-header h2 {
        font-size: 29px;
    }

    .tfd-header p {
        font-size: 13px;
    }

    .tfd-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tfd-card {
        border-radius: 13px;
    }

    .tfd-card-media {
        aspect-ratio: 1 / .86;
    }

    .tfd-card-badge {
        top: 7px;
        right: 7px;
        padding: 5px 7px;
        font-size: 9px;
    }

    .tfd-card-body {
        padding: 11px;
    }

    .tfd-card-body h3 {
        margin-bottom: 7px;
        font-size: 13px;
    }

    .tfd-price {
        min-height: 24px;
        gap: 4px;
        margin-bottom: 9px;
    }

    .tfd-regular-price {
        font-size: 10px;
    }

    .tfd-current-price {
        font-size: 15px;
    }

    .tfd-button {
        min-height: 39px;
        padding: 8px 6px;
        border-radius: 8px;
        font-size: 10px;
    }
}

/* Performance and theme compatibility hardening */
.tfd-showcase .tfd-products{contain:layout style}
.tfd-showcase .tfd-card{content-visibility:auto;contain-intrinsic-size:auto 430px}
.tfd-showcase a.tfd-button,.tfd-showcase span.tfd-button{box-sizing:border-box!important;text-decoration:none!important;border:none!important;box-shadow:none!important}
.tfd-showcase .tfd-image-link img{max-width:none!important;margin:0!important;border-radius:0!important}
.tfd-showcase .tfd-card-body h3,.tfd-showcase .tfd-card-body h3 a{font-family:inherit!important}
@media (prefers-reduced-motion:reduce){.tfd-showcase *{animation:none!important;transition:none!important}}
