/* =============================================================
   Deals Block v4.0 — Чисто. Цена главная. % поддерживает.
============================================================= */

/* ── Tabs ───────────────────────────────────────────────── */
.deals-tabs-block { margin: 0 0 30px; }

.deals-tab-nav {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.deals-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #aaa;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.deals-tab-btn:hover    { color: #333; }
.deals-tab-btn.is-active { color: #e53935; border-bottom-color: #e53935; }

/* ── Panes ──────────────────────────────────────────────── */
.deals-tab-pane          { display: none; }
.deals-tab-pane.is-active{ display: block; }

/* ── List ───────────────────────────────────────────────── */
.deals-list { display: flex; flex-direction: column; gap: 24px; }

/* ── Card ───────────────────────────────────────────────── */
.deal-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .2s;
}
.deal-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.11); }

/* ── Image ──────────────────────────────────────────────── */
.deal-thumb-wrap {
    flex: 0 0 230px;
    width: 230px;
    display: block;
    overflow: hidden;
    background: #f5f5f5;
    text-decoration: none;
}
.deal-thumb-wrap img {
    width: 100%;
    height: 100%;
    min-height: 145px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.deal-card:hover .deal-thumb-wrap img { transform: scale(1.03); }
.deal-thumb-placeholder {
    width: 100%;
    min-height: 145px;
    background: #ececec;
}

/* ── Info ───────────────────────────────────────────────── */
.deal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;   /* ← ключевое: дети НЕ растягиваются */
    padding: 22px 26px;
    gap: 5px;
}

/* ── Title ──────────────────────────────────────────────── */
.deal-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
    line-height: 1.2;
}
/* Бренд — крупный, жирный */
.deal-title-brand {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}
/* "Discount" — одинаковый шрифт с брендом */
.deal-title-sub {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

/* ── HOT ────────────────────────────────────────────────── */
.deal-badge-hot {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #fff;
    background: #e53935;
    border-radius: 3px;
    padding: 2px 6px;
    flex-shrink: 0;
}

/* ── % — убрали из отдельного блока, теперь inline ──────── */
.deal-discount { display: none; }

/* ── Prices ─────────────────────────────────────────────── */
.deal-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

/* Новая цена — главный фокус */
.deal-new-price {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}
.deal-label {
    font-size: 13px;
    font-weight: 400;
    color: #aaa;
}

/* Строка со старой ценой */
.deal-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.deal-old-price {
    font-size: 14px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
}
/* % — рядом с ценой, заметный но не агрессивный */
.deal-pct-badge {
    font-size: 14px;
    font-weight: 800;
    color: #e53935;
    background: #fff3f2;
    border: 1px solid #ffc9c7;
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: .2px;
    white-space: nowrap;
}

/* ── Button — как на сайте, компактная ─────────────────── */
.deal-info .deal-btn {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    align-self: flex-start !important;
    margin-top: 14px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #FFD700 !important;
    background: #111 !important;
    border-radius: 30px;          /* овальная — как на скриншоте */
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255,210,0,.45);
    box-shadow: 0 3px 12px rgba(0,0,0,.3);
    transition: background .18s, transform .14s, box-shadow .18s;
}
.deal-info .deal-btn:hover {
    background: #333 !important;
    color: #FFD700 !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.deal-info .deal-btn:active { transform: translateY(0); }

/* ── Empty ──────────────────────────────────────────────── */
.deals-empty { color: #aaa; font-size: 14px; padding: 16px 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .deal-card      { flex-direction: column; }
    .deal-thumb-wrap{ flex: none; width: 100%; height: 180px; }
    .deal-thumb-wrap img { min-height: 180px; }
    .deal-new-price { font-size: 22px; }
    .deals-tab-btn  { padding: 10px 14px; }
}


/* ── Header CTA button ──────────────────────────────────── */
.header-deals-cta {
    display: inline-flex;
    align-items: center;
    margin-left: 16px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: none;
    color: #fff !important;
    background: #FF9000 !important;
    border-radius: 22px;
    text-decoration: none !important;
    white-space: nowrap;
    border: none;
    box-shadow: none;
    transition: background .18s, opacity .18s;
    flex-shrink: 0;
}
.header-deals-cta:hover {
    background: #e07d00 !important;
    color: #fff !important;
    text-decoration: none !important;
    opacity: 1;
}
