/* public/assets/css/custom-deal-sets.css */

:root {
    /* при желании синхронизируй с бренд-цветом шаблона */
    --brand-orange: #ff6b00;
    --text-dark: #0f172a;
    --muted: #6b7280;
    --card-bg: #ffffff;
    --card-border: #eef0f3;
}

/* Заголовок секции унифицируем с Best Food Items */
.deal-section .title-area .sub-title {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.deal-section .title-area .title {
    margin-top: 8px;
}

/* Tabs */
.deal-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: .5rem;
}

.deal-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .6rem 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: #f7f7f9;
    transition: all .2s ease;
}

.deal-tabs .nav-link:hover {
    transform: translateY(-1px);
}

.deal-tabs .nav-link.active {
    color: #fff;
    background: var(--brand-orange);
    border-color: var(--brand-orange);
}

/* Fade анимация вкладок */
.tab-pane.fade {
    transition: opacity .3s ease-in-out;
}

/* Карточка (плотнее, чем Best Food Items) */
.deal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px;
    height: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
}

.deal-card .food-card__img {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: grid;
    place-items: center;
}

.deal-card .food-card__img img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    /* или contain, если исходники с прозрачным фоном */
}

.deal-card .food-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.deal-card .food-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.25;
}

.deal-card .food-card__meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.deal-card .food-card__bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.deal-card .food-card__price {
    font-weight: 800;
    font-size: 20px;
}

/* Кнопка в стиле темы (поддержка существующих .theme-btn.style6) */
.deal-card .add-to-cart-btn.theme-btn.style6 {
    border-radius: 999px;
    padding: 10px 16px;
    line-height: 1;
}

/* Адаптив: iPhone SE и ниже — 1 карточка в ряд */
@media (max-width: 667px) {
    .deal-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .deal-card .food-card__img {
        margin: 0 auto 10px;
    }

    .deal-card .food-card__bottom {
        justify-content: center;
    }
}